2022-02-18 14:00:58 +01:00
|
|
|
#include <core/stdafx.h>
|
|
|
|
#include <core/init.h>
|
|
|
|
#include <launcher/prx.h>
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Purpose: shutdown and unload SDK
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
void h_exit_or_terminate_process(UINT uExitCode)
|
|
|
|
{
|
2022-08-29 14:31:05 +02:00
|
|
|
//SDK_Shutdown();
|
2022-02-18 14:00:58 +01:00
|
|
|
|
|
|
|
HANDLE h = GetCurrentProcess();
|
|
|
|
TerminateProcess(h, uExitCode);
|
|
|
|
}
|
|
|
|
|
2023-11-26 13:21:20 +01:00
|
|
|
void VPRX::Detour(const bool bAttach) const
|
2022-02-18 14:00:58 +01:00
|
|
|
{
|
2023-11-26 13:21:20 +01:00
|
|
|
//DetourSetup(&v_exit_or_terminate_process, &h_exit_or_terminate_process, bAttach);
|
2022-02-18 14:00:58 +01:00
|
|
|
}
|