Fix windows build

This commit is contained in:
Accelerator 2024-05-05 14:13:16 +03:00
parent 3f6694b148
commit f77ced2d2d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#ifndef _INCLUDE_GAME_OFFSETS_ #ifndef _INCLUDE_GAME_OFFSETS_
#define _INCLUDE_GAME_OFFSETS_ #define _INCLUDE_GAME_OFFSETS_
#ifdef WIN32 #if SH_SYS == SH_SYS_WIN32
int maxplayers_offs = 138; // m_nMaxClientsLimit (in CGameServer::SetMaxClients) int maxplayers_offs = 138; // m_nMaxClientsLimit (in CGameServer::SetMaxClients)
#if SOURCE_ENGINE == SE_LEFT4DEAD #if SOURCE_ENGINE == SE_LEFT4DEAD
#include "l4d1_offsets_win32.h" #include "l4d1_offsets_win32.h"

View File

@ -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); GET_V_IFACE_CURRENT(GetEngineFactory, g_pCVar, ICvar, CVAR_INTERFACE_VERSION);
void* handle = NULL; void* handle = NULL;
#ifdef PLATFORM_WINDOWS #if SH_SYS == SH_SYS_WIN32
if (!(handle=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient))) { if (!(handle=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient))) {
Warning("Failed to get address 'IVEngineServer::CreateFakeClient'\n"); Warning("Failed to get address 'IVEngineServer::CreateFakeClient'\n");
} else { } else {