mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Merge branch 'noexchndl' into 'master'
Windows: add -noexchndl, optionally disables loading exchndl.dll See merge request KartKrew/Kart!1032
This commit is contained in:
commit
552b774028
1 changed files with 3 additions and 1 deletions
|
|
@ -205,7 +205,8 @@ static void init_exchndl()
|
||||||
|
|
||||||
if (exchndl_module == NULL)
|
if (exchndl_module == NULL)
|
||||||
{
|
{
|
||||||
I_Error("exchndl.dll or mgwhelp.dll is missing");
|
I_Error("exchndl.dll or mgwhelp.dll is missing, RPT files cannot be generated.\n"
|
||||||
|
"If you NEED to run without them, use -noexchndl.");
|
||||||
}
|
}
|
||||||
|
|
||||||
using PFN_ExcHndlInit = void(*)(void);
|
using PFN_ExcHndlInit = void(*)(void);
|
||||||
|
|
@ -297,6 +298,7 @@ int main(int argc, char **argv)
|
||||||
//I_OutputMsg("I_StartupSystem() ...\n");
|
//I_OutputMsg("I_StartupSystem() ...\n");
|
||||||
I_StartupSystem();
|
I_StartupSystem();
|
||||||
#if defined (_WIN32)
|
#if defined (_WIN32)
|
||||||
|
if (!M_CheckParm("-noexchndl"))
|
||||||
{
|
{
|
||||||
#if 0 // just load the DLL
|
#if 0 // just load the DLL
|
||||||
p_IsDebuggerPresent pfnIsDebuggerPresent = (p_IsDebuggerPresent)GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsDebuggerPresent");
|
p_IsDebuggerPresent pfnIsDebuggerPresent = (p_IsDebuggerPresent)GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsDebuggerPresent");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue