From 8f6595e869f76b453701552a06380dc7e33c8664 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Tue, 6 Aug 2019 11:54:10 -0400 Subject: [PATCH] small fixes --- include/common.h | 6 +----- texthook/engine/match32.cc | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/common.h b/include/common.h index 4c4d694..a9b5daf 100644 --- a/include/common.h +++ b/include/common.h @@ -54,11 +54,7 @@ private: }; template -struct Functor -{ - template - auto operator()(Args&&... args) const { return std::invoke(F, std::forward(args)...); } -}; +using Functor = std::integral_constant, F>; template > class AutoHandle diff --git a/texthook/engine/match32.cc b/texthook/engine/match32.cc index 08a0e62..59fe3a0 100644 --- a/texthook/engine/match32.cc +++ b/texthook/engine/match32.cc @@ -75,8 +75,6 @@ bool DeterminePCEngine() // PC games PcHooks::hookGDIFunctions(); PcHooks::hookGDIPlusFunctions(); - const char check[] = "sdffffffkjldfjlhjweiumxnvq1204tergdmnxcq1111111111111111111111408t03kxjb40"; - Util::SearchMemory((const BYTE*)check, sizeof(check)); // Not too sure about the stability of this guy, so test it here return false; }