Switch TF2 to use IVEngineServer::GetIServer in SDKTools to find IServer ptr.
This commit is contained in:
parent
6e9b4bf276
commit
2fb01e412e
@ -130,6 +130,9 @@ bool UTIL_VerifySignature(const void *addr, const char *sig, size_t len)
|
|||||||
|
|
||||||
void GetIServer()
|
void GetIServer()
|
||||||
{
|
{
|
||||||
|
#if SOURCE_ENGINE == SE_TF2
|
||||||
|
iserver = engine->GetIServer();
|
||||||
|
#else
|
||||||
void *addr;
|
void *addr;
|
||||||
const char *sigstr;
|
const char *sigstr;
|
||||||
char sig[32];
|
char sig[32];
|
||||||
@ -188,6 +191,7 @@ void GetIServer()
|
|||||||
|
|
||||||
/* Finally we have the interface we were looking for */
|
/* Finally we have the interface we were looking for */
|
||||||
iserver = *reinterpret_cast<IServer **>(reinterpret_cast<unsigned char *>(vfunc) + offset);
|
iserver = *reinterpret_cast<IServer **>(reinterpret_cast<unsigned char *>(vfunc) + offset);
|
||||||
|
#endif // !TF2
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetResourceEntity()
|
void GetResourceEntity()
|
||||||
|
Loading…
Reference in New Issue
Block a user