From 72c37dee884cdb449d7d438b5d2d3a6bdd3e1069 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 30 Aug 2018 16:09:09 -0400 Subject: [PATCH] add error if memsearch fails --- vnrhook/engine/match.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnrhook/engine/match.cc b/vnrhook/engine/match.cc index d068290..bd189d0 100644 --- a/vnrhook/engine/match.cc +++ b/vnrhook/engine/match.cc @@ -85,6 +85,9 @@ bool DeterminePCEngine() // PC games PcHooks::hookGDIFunctions(); 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; }