mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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).
24 lines
819 B
C++
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);
|