Respect UE_ENGINE_NO_CONSOLE_WINDOW flag

This commit is contained in:
Duncan Ogilvie 2026-04-13 11:39:20 +02:00
parent c4fa827120
commit 2cc003cdcf
3 changed files with 7 additions and 1 deletions

View File

@ -40,7 +40,9 @@ namespace GleeBug
auto creationFlags = DEBUG_PROCESS; auto creationFlags = DEBUG_PROCESS;
creationFlags |= DEBUG_ONLY_THIS_PROCESS; // TODO: support child process debugging 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; creationFlags |= CREATE_NEW_CONSOLE;
if(startSuspended) if(startSuspended)
creationFlags |= CREATE_SUSPENDED; creationFlags |= CREATE_SUSPENDED;

View File

@ -294,6 +294,7 @@ namespace GleeBug
bool mAttachedToProcess = false; bool mAttachedToProcess = false;
bool mSafeStep = true; bool mSafeStep = true;
bool mDisableAslr = false; bool mDisableAslr = false;
bool mNoConsoleWindow = false;
/** /**
\brief The current process (can be null in some cases). \brief The current process (can be null in some cases).

View File

@ -199,6 +199,9 @@ public:
case UE_ENGINE_DISABLE_ASLR: case UE_ENGINE_DISABLE_ASLR:
mDisableAslr = VariableSet; mDisableAslr = VariableSet;
break; break;
case UE_ENGINE_NO_CONSOLE_WINDOW:
mNoConsoleWindow = VariableSet;
break;
} }
} }