mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Ever since we moved to the new loader setup, the shutdown of the SDK never got called as case DLL_PROCESS_DETACH is never hit on time in the SDK module due to the way its loaded/unloaded now. The init/shutdown functions are now exported, and we let loader handle the load/unload of our SDK now. Loader now also hooks LauncherMain instead of WinMain as WinMain never returns, and therefore, we cannot shutdown the SDK from there. LauncherMain does return then the game is to be closed.
21 lines
376 B
C
21 lines
376 B
C
#pragma once
|
|
|
|
PLATFORM_INTERFACE void SDK_Init();
|
|
PLATFORM_INTERFACE void SDK_Shutdown();
|
|
|
|
void Systems_Init();
|
|
void Systems_Shutdown();
|
|
|
|
void Winsock_Startup();
|
|
void Winsock_Shutdown();
|
|
void DirtySDK_Startup();
|
|
void DirtySDK_Shutdown();
|
|
void QuerySystemInfo();
|
|
void CheckCPU();
|
|
|
|
void DetourInit();
|
|
void DetourAddress();
|
|
void DetourRegister();
|
|
|
|
extern bool g_bSdkInitialized;
|