add error if memsearch fails

This commit is contained in:
Akash Mozumdar 2018-08-30 16:09:09 -04:00
parent 8342850bb7
commit 72c37dee88

View File

@ -85,6 +85,9 @@ bool DeterminePCEngine()
// PC games // PC games
PcHooks::hookGDIFunctions(); PcHooks::hookGDIFunctions();
PcHooks::hookGDIPlusFunctions(); PcHooks::hookGDIPlusFunctions();
const char check[] = "sdffffffkjldfjlhjweiumxnvq1204tergdmnxcq1111111111111111111111408t03kxjb40";
__try { Util::SearchMemory((const BYTE*)check, sizeof(check)); } // Not too sure about the stability of this guy
__except (1) { ConsoleOutput("NextHooker threw while searching memory (NextHooker will likely still work fine, but please let Artikash know this happened!)"); }
return false; return false;
} }