From a952e9fab24154f5c2073fef9e880e0185436310 Mon Sep 17 00:00:00 2001 From: "zer0.k" Date: Tue, 19 Dec 2023 00:15:13 +0700 Subject: [PATCH] Update submodule to remove temp fix --- hl2sdk-cs2 | 2 +- src/kz/mode/kz_mode_manager.cpp | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/hl2sdk-cs2 b/hl2sdk-cs2 index ea98159ae..0fa728461 160000 --- a/hl2sdk-cs2 +++ b/hl2sdk-cs2 @@ -1 +1 @@ -Subproject commit ea98159aeb4363bd6012f545740b5877a538276b +Subproject commit 0fa728461907bca87a4c4ec0298e8a17b238f542 diff --git a/src/kz/mode/kz_mode_manager.cpp b/src/kz/mode/kz_mode_manager.cpp index 1f0736087..70e94c198 100644 --- a/src/kz/mode/kz_mode_manager.cpp +++ b/src/kz/mode/kz_mode_manager.cpp @@ -41,8 +41,6 @@ void KZ::mode::LoadModePlugins() char buffer[1024]; g_SMAPI->PathFormat(buffer, sizeof(buffer), "addons/cs2kz/modes/*.*"); FileFindHandle_t findHandle = {}; - // TODO: Fix this -#ifdef _WIN32 const char *output = g_pFullFileSystem->FindFirstEx(buffer, "GAME", &findHandle); if (output) { @@ -61,26 +59,6 @@ void KZ::mode::LoadModePlugins() g_pFullFileSystem->FindClose(findHandle); } -#else - const char *output = CALL_VIRTUAL(const char *, 63, g_pFullFileSystem, buffer, "GAME", &findHandle); - if (output) - { - int ret; - ISmmPluginManager *pluginManager = (ISmmPluginManager *)g_SMAPI->MetaFactory(MMIFACE_PLMANAGER, &ret, 0); - if (ret == META_IFACE_FAILED) return; - char error[256]; - char fullPath[1024]; - do - { - g_SMAPI->PathFormat(fullPath, sizeof(fullPath), "%s/addons/cs2kz/modes/%s", g_SMAPI->GetBaseDir(), output); - bool already = false; - pluginManager->Load(fullPath, g_PLID, already, error, sizeof(error)); - output = CALL_VIRTUAL(const char *, 60, g_pFullFileSystem, findHandle); - } while (output); - - CALL_VIRTUAL(void, 62, g_pFullFileSystem, &findHandle); - } -#endif } void KZ::mode::InitModeService(KZPlayer *player)