r5sdk/r5dev/core/init.h
Kawe Mazidjatari 5e1ecdb6b5 Loader: fix shutdown bug
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.
2024-04-05 18:40:35 +02:00

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;