pause: cleanup, remove an unused hook
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
|
||||
void(__cdecl* divaEngineUpdate)() = (void(__cdecl*)())0x14018CC40;
|
||||
void(__cdecl* divaEngineDrawSprites)(void* addr, int idk) = (void(__cdecl*)(void* addr, int idk))ENGINE_DRAW_SPRITES_ADDRESS;
|
||||
void(__cdecl* divaEngineFinishDraw)() = (void(__cdecl*)())ENGINE_FINISH_DRAW_ADDRESS;
|
||||
|
||||
LRESULT CALLBACK MessageWindowProcessCallback(HWND, UINT, WPARAM, LPARAM);
|
||||
DWORD WINAPI WindowMessageDispatcher(LPVOID);
|
||||
@@ -133,11 +132,6 @@ namespace TLAC
|
||||
ComponentsManager.UpdateDrawSprites();
|
||||
}
|
||||
|
||||
void UpdatePostDraw()
|
||||
{
|
||||
ComponentsManager.UpdatePostDraw();
|
||||
}
|
||||
|
||||
void InitializeExtraSettings()
|
||||
{
|
||||
const LPCTSTR RESOLUTION_CONFIG_FILE_NAME = _T(".\\config.ini");
|
||||
@@ -361,12 +355,6 @@ void hookedEngineDrawSprites(void* addr, int idk)
|
||||
TLAC::UpdateDrawSprites();
|
||||
}
|
||||
|
||||
void hookedEngineFinishDraw()
|
||||
{
|
||||
TLAC::UpdatePostDraw();
|
||||
divaEngineFinishDraw();
|
||||
}
|
||||
|
||||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||
{
|
||||
HWND consoleHandle = GetConsoleWindow();
|
||||
@@ -393,11 +381,6 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
|
||||
DetourAttach(&(PVOID&)divaEngineDrawSprites, hookedEngineDrawSprites);
|
||||
DetourTransactionCommit();
|
||||
|
||||
DetourTransactionBegin();
|
||||
DetourUpdateThread(GetCurrentThread());
|
||||
DetourAttach(&(PVOID&)divaEngineFinishDraw, hookedEngineFinishDraw);
|
||||
DetourTransactionCommit();
|
||||
|
||||
TLAC::InitializeExtraSettings();
|
||||
|
||||
TLAC::framework::Module = hModule;
|
||||
|
||||
Reference in New Issue
Block a user