Really fixed issues for today's TF2 engine update (bug 5450).
This commit is contained in:
parent
9077686998
commit
7441af67a8
@ -127,7 +127,7 @@ void GetIServer()
|
|||||||
|
|
||||||
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
|
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
|
||||||
/* Get the CreateFakeClient function pointer */
|
/* 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)))
|
if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClientEx)))
|
||||||
#else
|
#else
|
||||||
if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient)))
|
if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient)))
|
||||||
@ -138,7 +138,7 @@ void GetIServer()
|
|||||||
#else
|
#else
|
||||||
/* Get the interface manually */
|
/* Get the interface manually */
|
||||||
SourceHook::MemFuncInfo info = {true, -1, 0, 0};
|
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);
|
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClientEx, info);
|
||||||
#else
|
#else
|
||||||
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info);
|
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info);
|
||||||
|
@ -146,7 +146,7 @@
|
|||||||
* the expected code. A pointer to sv (IServer interface) is used
|
* the expected code. A pointer to sv (IServer interface) is used
|
||||||
* here.
|
* 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"
|
"Offsets"
|
||||||
@ -154,7 +154,7 @@
|
|||||||
/* Offset into IVEngineServer::CreateFakeClient */
|
/* Offset into IVEngineServer::CreateFakeClient */
|
||||||
"sv"
|
"sv"
|
||||||
{
|
{
|
||||||
"windows" "7"
|
"windows" "8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user