add warning on missing signature

This commit is contained in:
Jenny White 2018-04-28 19:57:47 +03:00
parent bca4048063
commit 4b80953315
2 changed files with 7 additions and 2 deletions

View File

@ -78,6 +78,9 @@ uintptr_t CSignature::dwFindPattern(uintptr_t dwAddress, uintptr_t dwLength,
firstMatch = 0;
}
}
logging::Info("THIS IS SERIOUS: Could not locate signature: \n============\n\"%s\"\n============", szPattern);
return NULL;
}
//===================================================================================

View File

@ -1043,12 +1043,13 @@ void LevelInit_hook(void *_this, const char *newmap)
playerlist::Save();
votelogger::antikick_ticks = 0;
hacks::shared::lagexploit::bcalled = false;
#if ENABLE_VISUALS
typedef bool *(*LoadNamedSkys_Fn)(const char *);
uintptr_t addr =
gSignatures.GetEngineSignature("55 89 E5 57 31 FF 56 8D B5 ? ? ? ? 53 "
"81 EC ? ? ? ? C7 85 ? ? ? ? ? ? ? ?");
gSignatures.GetEngineSignature("55 89 E5 57 31 FF 56 8D B5 ? ? ? ? 53 81 EC 6C 01 00 00");
static LoadNamedSkys_Fn LoadNamedSkys = LoadNamedSkys_Fn(addr);
bool succ;
logging::Info("Going to load the skybox");
#ifdef __clang__
asm("movl %1, %%edi; push skynum[(int) skybox_changer]; call %%edi; mov "
"%%eax, %0; add %%esp, 4h"
@ -1064,6 +1065,7 @@ void LevelInit_hook(void *_this, const char *newmap)
holiday->SetValue(2);
else if (holiday->m_nValue == 2)
holiday->SetValue(2);
#endif
g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec");
hacks::shared::aimbot::Reset();