1
0
mirror of https://github.com/Mauler125/r5sdk.git synced 2025-02-09 19:15:03 +01:00

Engine: light cleanup on CVEngineServer

This commit is contained in:
Kawe Mazidjatari 2024-12-05 20:05:39 +01:00
parent 8c85e1ec68
commit 6a8eb40930
2 changed files with 9 additions and 10 deletions

@ -9,10 +9,10 @@
//-----------------------------------------------------------------------------
// Purpose: sets the persistence var in the CClient instance to 'ready'
//-----------------------------------------------------------------------------
bool CVEngineServer::PersistenceAvailable(void* entidx, int clientidx)
bool CVEngineServer::PersistenceAvailable(CVEngineServer* const thisptr, const int clientidx)
{
///////////////////////////////////////////////////////////////////////////
return CVEngineServer__PersistenceAvailable(entidx, clientidx);
return CVEngineServer__PersistenceAvailable(thisptr, clientidx);
}
void HVEngineServer::Detour(const bool bAttach) const

@ -2,22 +2,21 @@
#include "public/edict.h"
#include "public/eiface.h"
/* ==== CVENGINESERVER ================================================================================================================================================== */
inline bool(*CVEngineServer__PersistenceAvailable)(void* entidx, int clientidx);
inline bool* m_bIsDedicated = nullptr;
///////////////////////////////////////////////////////////////////////////////
class CVEngineServer : public IVEngineServer
{
public:
static bool PersistenceAvailable(void* entidx, int clientidx);
static bool PersistenceAvailable(CVEngineServer* const thisptr, const int clientidx);
// Implementation in GameDLL.
};
extern CVEngineServer* g_pEngineServer;
extern IVEngineServer* g_pEngineServerVFTable;
/* ==== CVENGINESERVER ================================================================================================================================================== */
inline bool(*CVEngineServer__PersistenceAvailable)(CVEngineServer* const thisptr, const int clientidx);
///////////////////////////////////////////////////////////////////////////////
inline bool* m_bIsDedicated = nullptr;
///////////////////////////////////////////////////////////////////////////////
class HVEngineServer : public IDetour
{