r5sdk/r5dev/engine/baseserver.h
Kawe Mazidjatari e2f06a8a68 Massive performance improvements
Inline every signature defined in the SDK (previously each translation unit had its own copy of the signature and function prototype). DLL init is near instant now (85% speed improvements).
2022-04-09 02:18:57 +02:00

24 lines
819 B
C++

#pragma once
class CBaseServer
{
public:
int GetNumHumanPlayers(void) const;
int GetNumFakeClients(void) const;
};
extern CBaseServer* g_pServer;
///////////////////////////////////////////////////////////////////////////////
class HBaseServer : public IDetour
{
virtual void debugp()
{
//std::cout << "| VAR: g_dwMaxClients : 0x" << std::hex << std::uppercase << g_dwMaxClients << std::setw(0) << " |" << std::endl;
//std::cout << "| VAR: g_dwMaxFakeClients : 0x" << std::hex << std::uppercase << g_dwMaxFakeClients << std::setw(0) << " |" << std::endl;
//std::cout << "+----------------------------------------------------------------+" << std::endl;
}
};
///////////////////////////////////////////////////////////////////////////////
REGISTER(HBaseServer);