From f77ced2d2def1b2fc5b4f047b2652f936f81ce45 Mon Sep 17 00:00:00 2001 From: Accelerator Date: Sun, 5 May 2024 14:13:16 +0300 Subject: [PATCH] Fix windows build --- game_offsets.h | 2 +- l4dtoolz_mm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game_offsets.h b/game_offsets.h index 8ea0379..92f6805 100644 --- a/game_offsets.h +++ b/game_offsets.h @@ -1,7 +1,7 @@ #ifndef _INCLUDE_GAME_OFFSETS_ #define _INCLUDE_GAME_OFFSETS_ -#ifdef WIN32 +#if SH_SYS == SH_SYS_WIN32 int maxplayers_offs = 138; // m_nMaxClientsLimit (in CGameServer::SetMaxClients) #if SOURCE_ENGINE == SE_LEFT4DEAD #include "l4d1_offsets_win32.h" diff --git a/l4dtoolz_mm.cpp b/l4dtoolz_mm.cpp index f53a9b0..1987eb1 100644 --- a/l4dtoolz_mm.cpp +++ b/l4dtoolz_mm.cpp @@ -100,7 +100,7 @@ bool l4dtoolz::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool GET_V_IFACE_CURRENT(GetEngineFactory, g_pCVar, ICvar, CVAR_INTERFACE_VERSION); void* handle = NULL; -#ifdef PLATFORM_WINDOWS +#if SH_SYS == SH_SYS_WIN32 if (!(handle=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient))) { Warning("Failed to get address 'IVEngineServer::CreateFakeClient'\n"); } else {