From 7441af67a86c21f1a21a8a49813e4645877aa542 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 24 Aug 2012 01:36:42 -0400 Subject: [PATCH] Really fixed issues for today's TF2 engine update (bug 5450). --- extensions/sdktools/vglobals.cpp | 4 ++-- gamedata/sdktools.games/engine.ep2valve.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/sdktools/vglobals.cpp b/extensions/sdktools/vglobals.cpp index c1a8ae54..8ab8aebd 100644 --- a/extensions/sdktools/vglobals.cpp +++ b/extensions/sdktools/vglobals.cpp @@ -127,7 +127,7 @@ void GetIServer() #if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11 /* Get the CreateFakeClient function pointer */ -#if SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS +#if SOURCE_ENGINE == SE_CSS if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClientEx))) #else if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient))) @@ -138,7 +138,7 @@ void GetIServer() #else /* Get the interface manually */ SourceHook::MemFuncInfo info = {true, -1, 0, 0}; -#if SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS +#if SOURCE_ENGINE == SE_CSS SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClientEx, info); #else SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info); diff --git a/gamedata/sdktools.games/engine.ep2valve.txt b/gamedata/sdktools.games/engine.ep2valve.txt index b181a013..8dc39780 100644 --- a/gamedata/sdktools.games/engine.ep2valve.txt +++ b/gamedata/sdktools.games/engine.ep2valve.txt @@ -146,7 +146,7 @@ * the expected code. A pointer to sv (IServer interface) is used * here. */ - "CreateFakeClient_Windows" "\x55\x8B\xEC\x8A\x2A\x2A\xA2\x2A\x2A\x2A\x2A\x8B\x2A\x8B" + "CreateFakeClient_Windows" "\x55\x8B\xEC\x8B\x2A\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8" } "Offsets" @@ -154,7 +154,7 @@ /* Offset into IVEngineServer::CreateFakeClient */ "sv" { - "windows" "7" + "windows" "8" } }