mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 20:12:40 +02:00
only output error filename once
This commit is contained in:
@@ -350,7 +350,7 @@ public:
|
|||||||
errorLogFile = userData + errorLogFile;
|
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__)
|
#if defined(WIN32) && !defined(__MINGW32__)
|
||||||
FILE *fp = _wfopen(utf8_decode(errorLogFile).c_str(), L"w");
|
FILE *fp = _wfopen(utf8_decode(errorLogFile).c_str(), L"w");
|
||||||
@@ -381,6 +381,12 @@ public:
|
|||||||
fflush(stdout);
|
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) {
|
static void handleRuntimeError(const char *msg) {
|
||||||
|
Reference in New Issue
Block a user