mirror of
https://github.com/accelerator74/l4dtoolz.git
synced 2024-12-22 06:29:49 +08:00
Fix windows build
This commit is contained in:
parent
3f6694b148
commit
f77ced2d2d
@ -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"
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user