mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
25 lines
1015 B
C++
25 lines
1015 B
C++
//=============================================================================//
|
|
//
|
|
// Purpose: Interface the engine exposes to the game DLL
|
|
//
|
|
//=============================================================================//
|
|
|
|
#include "vengineserver_impl.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Purpose: sets the persistence var in the CClient instance to 'ready'
|
|
//-----------------------------------------------------------------------------
|
|
bool CVEngineServer::PersistenceAvailable(void* entidx, int clientidx)
|
|
{
|
|
///////////////////////////////////////////////////////////////////////////
|
|
return IVEngineServer__PersistenceAvailable(entidx, clientidx);
|
|
}
|
|
|
|
void HVEngineServer::Detour(const bool bAttach) const
|
|
{
|
|
DetourSetup(&IVEngineServer__PersistenceAvailable, &CVEngineServer::PersistenceAvailable, bAttach);
|
|
}
|
|
|
|
IVEngineServer* g_pEngineServerVFTable = nullptr;
|
|
CVEngineServer* g_pEngineServer = reinterpret_cast<CVEngineServer*>(&g_pEngineServerVFTable);
|