Skip to content
Snippets Groups Projects
Commit 1cf1c047 authored by Jan Möbius's avatar Jan Möbius
Browse files

Make console activation easier

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15817 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2f23cf72
No related branches found
No related tags found
No related merge requests found
......@@ -72,14 +72,11 @@
#include <omp.h>
#endif
// Includes for windows debugging console
#ifdef WIN32
#ifndef NDEBUG
#include <fcntl.h>
#include <io.h>
#endif
#endif
// #ifndef WIN32
......@@ -229,7 +226,6 @@ void segfaultHandling (int) {
}
#ifdef WIN32
#ifndef NDEBUG
void getConsole() {
//Create a console for this application
AllocConsole();
......@@ -253,7 +249,6 @@ void segfaultHandling (int) {
setvbuf(stdin, NULL, _IONBF, 0);
}
#endif
#endif
bool openPolyMeshes = false;
bool remoteControl = false;
......@@ -319,12 +314,6 @@ bool parseCommandLineOptions(CSimpleOpt& args){
int main(int argc, char **argv)
{
#ifdef WIN32
#ifndef NDEBUG
getConsole();
#endif
#endif
// Remove -psn_0_xxxxx argument which is automatically
// attached by MacOSX
for (int i = 0; i < argc; i++) {
......@@ -361,6 +350,12 @@ int main(int argc, char **argv)
OpenFlipper::Options::windowTitle("OpenFlipper v" + OpenFlipper::Options::coreVersion());
#ifdef WIN32
#ifndef NDEBUG
getConsole();
#endif
#endif
if ( !OpenFlipper::Options::nogui() ) {
// OpenGL check
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment