From 4db1c1b0a9062f02c70696edd61ef7c255b4b184 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Wed, 28 Jul 2021 19:15:47 +0200 Subject: [PATCH] Remove function again --- src/Components/Modules/QuickPatch.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index be4b5a37..1e0be026 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -380,19 +380,12 @@ namespace Components } } - template std::function ImportFunction(const std::string& dll, const std::string& function) - { - auto dllHandle = GetModuleHandleA(&dll[0]); - auto procAddr = GetProcAddress(dllHandle, &function[0]); - - return std::function (reinterpret_cast(procAddr)); - } - bool QuickPatch::IsDynClassnameStub(char* a1) { auto version = Zones::GetEntitiesZoneVersion(); - if (version >= VERSION_LATEST_CODO) { + if (version >= VERSION_LATEST_CODO) + { for (auto i = 0; i < Game::spawnVars->numSpawnVars; i++) { char** kvPair = Game::spawnVars->spawnVars[i];