small fixes

This commit is contained in:
Akash Mozumdar 2019-08-06 11:54:10 -04:00
parent 29367928c3
commit 8f6595e869
2 changed files with 1 additions and 7 deletions

View File

@ -54,11 +54,7 @@ private:
}; };
template <auto F> template <auto F>
struct Functor using Functor = std::integral_constant<std::decay_t<decltype(F)>, F>;
{
template <typename... Args>
auto operator()(Args&&... args) const { return std::invoke(F, std::forward<Args>(args)...); }
};
template <typename HandleCloser = Functor<CloseHandle>> template <typename HandleCloser = Functor<CloseHandle>>
class AutoHandle class AutoHandle

View File

@ -75,8 +75,6 @@ bool DeterminePCEngine()
// PC games // PC games
PcHooks::hookGDIFunctions(); PcHooks::hookGDIFunctions();
PcHooks::hookGDIPlusFunctions(); 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; return false;
} }