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; } }