mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Move shared utils to shared directory * Partial cleanup of existing codebase * Add precompiled header for debug configurations
24 lines
670 B
C++
24 lines
670 B
C++
#include "pch.h"
|
|
#include "hooks.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Engine Error message box
|
|
//-----------------------------------------------------------------------------
|
|
int HMSG_EngineError(char* fmt, va_list args)
|
|
{
|
|
printf("\nENGINE ERROR #####################################\n");
|
|
vprintf(fmt, args);
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
return org_MSG_EngineError(fmt, args);
|
|
}
|
|
|
|
void AttachMSGBoxHooks()
|
|
{
|
|
DetourAttach((LPVOID*)&org_MSG_EngineError, &HMSG_EngineError);
|
|
}
|
|
|
|
void DetachMSGBoxHooks()
|
|
{
|
|
DetourDetach((LPVOID*)&org_MSG_EngineError, &HMSG_EngineError);
|
|
} |