From ed551114d52ec4f9d9763e83d6dac305d5a9967d Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 8 Mar 2023 17:11:05 -0800 Subject: [PATCH] Windows: add -noexchndl, disables loading exchndl.dll --- src/sdl/i_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_main.cpp b/src/sdl/i_main.cpp index 2efe4126b..664984ab3 100644 --- a/src/sdl/i_main.cpp +++ b/src/sdl/i_main.cpp @@ -205,7 +205,8 @@ static void init_exchndl() 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); @@ -297,6 +298,7 @@ int main(int argc, char **argv) //I_OutputMsg("I_StartupSystem() ...\n"); I_StartupSystem(); #if defined (_WIN32) + if (!M_CheckParm("-noexchndl")) { #if 0 // just load the DLL p_IsDebuggerPresent pfnIsDebuggerPresent = (p_IsDebuggerPresent)GetProcAddress(GetModuleHandleA("kernel32.dll"), "IsDebuggerPresent");