From b30fdea0d0f75739ed6371004eaf465f457d3e27 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 18 Oct 2011 02:11:55 +0000 Subject: [PATCH] only output error filename once --- source/glest_game/main/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 50e66e71..56f27be0 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -350,7 +350,7 @@ public: errorLogFile = userData + errorLogFile; } - printf("Attempting to write error to file [%s]\n",errorLogFile.c_str()); + //printf("Attempting to write error to file [%s]\n",errorLogFile.c_str()); #if defined(WIN32) && !defined(__MINGW32__) FILE *fp = _wfopen(utf8_decode(errorLogFile).c_str(), L"w"); @@ -381,6 +381,12 @@ public: fflush(stdout); } } + else { + if(confirmToConsole == true) { + printf("COULD NOT SAVE TO ERROR logfile [%s]\n",errorLogFile.c_str()); + fflush(stdout); + } + } } static void handleRuntimeError(const char *msg) {