mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-09-18 07:48:04 +02:00
Un-hardcode all CHostState dependencies
The SDK now works on executables with ASLR enabled. !TODO: Dedicated.
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
#endif // !CLIENT_DLL
|
||||
#include "engine/common.h"
|
||||
#include "engine/cmodel_bsp.h"
|
||||
#include "engine/host.h"
|
||||
#include "engine/host_cmd.h"
|
||||
#include "engine/host_state.h"
|
||||
#include "engine/modelloader.h"
|
||||
@@ -107,12 +108,18 @@
|
||||
void Systems_Init()
|
||||
{
|
||||
CheckCPU();
|
||||
CFastTimer masterTimer;
|
||||
|
||||
masterTimer.Start();
|
||||
for (IDetour* pdetour : vDetour)
|
||||
{
|
||||
pdetour->GetFun();
|
||||
pdetour->GetVar();
|
||||
pdetour->GetCon();
|
||||
}
|
||||
masterTimer.End();
|
||||
|
||||
//printf("DLL initialization took %f seconds\n", masterTimer.GetDuration().GetSeconds());
|
||||
|
||||
// Initialize WinSock system.
|
||||
WS_Init();
|
||||
|
@@ -5,6 +5,7 @@
|
||||
#include <windows.h>
|
||||
#include <WinSock2.h>
|
||||
#include <comdef.h>
|
||||
#include <setjmp.h>
|
||||
#include <tchar.h>
|
||||
#include <stdio.h>
|
||||
#include <Psapi.h>
|
||||
|
Reference in New Issue
Block a user