Skip to content
Snippets Groups Projects
Commit faffc7f3 authored by aacuevas's avatar aacuevas
Browse files

Made console on Windows a command line parameter

parent 443ca85a
Branches
Tags
No related merge requests found
......@@ -74,15 +74,19 @@ public:
//==============================================================================
void initialise (const String& commandLine)
{
StringArray parameters;
parameters.addTokens(commandLine," ","\"");
#ifdef WIN32
glWinInit();
#ifdef DEBUG
if (AllocConsole())
{
freopen("CONOUT$","w",stdout);
SetConsoleTitle("Debug Console");
if (parameters.contains("--console",true)) {
if (AllocConsole())
{
freopen("CONOUT$","w",stdout);
SetConsoleTitle("Debug Console");
}
}
#endif
#endif
mainWindow = new MainWindow();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment