Remove unused code

This commit is contained in:
momo5502 2022-06-16 09:28:07 +02:00
parent f4a534db04
commit 8c1e212af3

View File

@ -14,12 +14,6 @@ namespace
exit(code);
}
VOID WINAPI initialize_critical_section(const LPCRITICAL_SECTION critical_section)
{
component_loader::post_unpack();
InitializeCriticalSection(critical_section);
}
void patch_imports()
{
const utils::nt::library game{};
@ -58,7 +52,6 @@ namespace
patch_steam_import("SteamAPI_Init");
patch_steam_import("SteamAPI_RestartAppIfNecessary");
//utils::hook::set(game.get_iat_entry("kernel32.dll", "InitializeCriticalSection"), initialize_critical_section);
utils::hook::set(game.get_iat_entry("kernel32.dll", "ExitProcess"), exit_hook);
}