Code overhaul

Moved every pattern to IDetour interface. This allows for debugging patterns scans more easily, and create threads during pattern searching (Operation is now fired in APIENTRY).

Also cleaned up some unused code/extraneous comments.
Slightly increased performance by purging duplicate patterns.
Made variable search less dependent from other results (except if pattern-to-scan results is within the same header)
This commit is contained in:
Kawe Mazidjatari
2022-04-18 03:35:08 +02:00
parent 7d869ca189
commit e32cc6ae6a
97 changed files with 1620 additions and 875 deletions

View File

@@ -36,4 +36,4 @@ bool CInputSystem::IsButtonDown(ButtonCode_t Button)
}
///////////////////////////////////////////////////////////////////////////////
CInputSystem* g_pInputSystem = reinterpret_cast<CInputSystem*>(p_IAppSystem_LoadLibrary.FindPatternSelf("48 89 05", CMemory::Direction::DOWN, 40).ResolveRelativeAddressSelf(0x3, 0x7).GetPtr());
CInputSystem* g_pInputSystem = nullptr;