2021-12-25 22:36:38 +01:00
|
|
|
//=============================================================================//
|
|
|
|
//
|
|
|
|
// Purpose: Interface the engine exposes to the game DLL
|
|
|
|
//
|
|
|
|
//=============================================================================//
|
|
|
|
|
2023-05-10 00:05:38 +02:00
|
|
|
#include "vengineserver_impl.h"
|
2021-12-25 22:36:38 +01:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose: sets the persistence var in the CClient instance to 'ready'
|
|
|
|
//-----------------------------------------------------------------------------
|
2023-04-01 10:36:09 +02:00
|
|
|
bool CVEngineServer::PersistenceAvailable(void* entidx, int clientidx)
|
2021-12-25 22:36:38 +01:00
|
|
|
{
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2024-01-02 15:21:36 +01:00
|
|
|
return CVEngineServer__PersistenceAvailable(entidx, clientidx);
|
2021-12-25 22:36:38 +01:00
|
|
|
}
|
|
|
|
|
2023-11-26 13:21:20 +01:00
|
|
|
void HVEngineServer::Detour(const bool bAttach) const
|
2021-12-25 22:36:38 +01:00
|
|
|
{
|
2024-01-02 15:21:36 +01:00
|
|
|
DetourSetup(&CVEngineServer__PersistenceAvailable, &CVEngineServer::PersistenceAvailable, bAttach);
|
2021-12-25 22:36:38 +01:00
|
|
|
}
|
|
|
|
|
2023-01-17 00:07:53 +01:00
|
|
|
IVEngineServer* g_pEngineServerVFTable = nullptr;
|
2023-12-30 02:51:02 +01:00
|
|
|
CVEngineServer* g_pEngineServer = reinterpret_cast<CVEngineServer*>(&g_pEngineServerVFTable);
|