From 2cc003cdcf013f152c5c26ce81664be7fbb54713 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Mon, 13 Apr 2026 11:39:20 +0200 Subject: [PATCH] Respect UE_ENGINE_NO_CONSOLE_WINDOW flag --- GleeBug/Debugger.cpp | 4 +++- GleeBug/Debugger.h | 1 + TitanEngineEmulator/Emulator.h | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/GleeBug/Debugger.cpp b/GleeBug/Debugger.cpp index 48f133a..1e3b9f5 100644 --- a/GleeBug/Debugger.cpp +++ b/GleeBug/Debugger.cpp @@ -40,7 +40,9 @@ namespace GleeBug auto creationFlags = DEBUG_PROCESS; creationFlags |= DEBUG_ONLY_THIS_PROCESS; // TODO: support child process debugging - if(newConsole) + if(mNoConsoleWindow) + creationFlags |= CREATE_NO_WINDOW; + else if(newConsole) creationFlags |= CREATE_NEW_CONSOLE; if(startSuspended) creationFlags |= CREATE_SUSPENDED; diff --git a/GleeBug/Debugger.h b/GleeBug/Debugger.h index 29824f7..ab8ffe6 100644 --- a/GleeBug/Debugger.h +++ b/GleeBug/Debugger.h @@ -294,6 +294,7 @@ namespace GleeBug bool mAttachedToProcess = false; bool mSafeStep = true; bool mDisableAslr = false; + bool mNoConsoleWindow = false; /** \brief The current process (can be null in some cases). diff --git a/TitanEngineEmulator/Emulator.h b/TitanEngineEmulator/Emulator.h index a758a90..84ed928 100644 --- a/TitanEngineEmulator/Emulator.h +++ b/TitanEngineEmulator/Emulator.h @@ -199,6 +199,9 @@ public: case UE_ENGINE_DISABLE_ASLR: mDisableAslr = VariableSet; break; + case UE_ENGINE_NO_CONSOLE_WINDOW: + mNoConsoleWindow = VariableSet; + break; } }