Skip to content

Commit

Permalink
Update submodule to remove temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0k-z committed Dec 18, 2023
1 parent 38fb58f commit a952e9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion hl2sdk-cs2
22 changes: 0 additions & 22 deletions src/kz/mode/kz_mode_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down

0 comments on commit a952e9f

Please sign in to comment.