Switch TF2 to use IVEngineServer::GetIServer in SDKTools to find IServer ptr.

This commit is contained in:
Nicholas Hastings 2014-07-03 12:26:52 -04:00
parent 6e9b4bf276
commit 2fb01e412e

View File

@ -130,6 +130,9 @@ bool UTIL_VerifySignature(const void *addr, const char *sig, size_t len)
void GetIServer()
{
#if SOURCE_ENGINE == SE_TF2
iserver = engine->GetIServer();
#else
void *addr;
const char *sigstr;
char sig[32];
@ -188,6 +191,7 @@ void GetIServer()
/* Finally we have the interface we were looking for */
iserver = *reinterpret_cast<IServer **>(reinterpret_cast<unsigned char *>(vfunc) + offset);
#endif // !TF2
}
void GetResourceEntity()