Merge pull request #1059 from lemondrops/bugfix/force_debug
Fix the debug console window not appearing.
This commit is contained in:
@@ -366,10 +366,6 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArg, int nCmdShow)
|
|||||||
/* First, set our (default) language. */
|
/* First, set our (default) language. */
|
||||||
set_language(0x0409);
|
set_language(0x0409);
|
||||||
|
|
||||||
/* Create console window. */
|
|
||||||
if (force_debug)
|
|
||||||
CreateConsole(1);
|
|
||||||
|
|
||||||
/* Process the command line for options. */
|
/* Process the command line for options. */
|
||||||
argc = ProcessCommandLine(&argw);
|
argc = ProcessCommandLine(&argw);
|
||||||
|
|
||||||
@@ -391,8 +387,11 @@ WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpszArg, int nCmdShow)
|
|||||||
if (enable_crashdump)
|
if (enable_crashdump)
|
||||||
InitCrashDump();
|
InitCrashDump();
|
||||||
|
|
||||||
if (force_debug)
|
/* Create console window. */
|
||||||
|
if (force_debug) {
|
||||||
|
CreateConsole(1);
|
||||||
atexit(CloseConsole);
|
atexit(CloseConsole);
|
||||||
|
}
|
||||||
|
|
||||||
/* Handle our GUI. */
|
/* Handle our GUI. */
|
||||||
i = ui_init(nCmdShow);
|
i = ui_init(nCmdShow);
|
||||||
|
Reference in New Issue
Block a user