diff options
author | yinsimei | 2017-06-28 16:30:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | e7a22b59f86f40241a29ec24019ea27811deb1ab (patch) | |
tree | 8ff06d1ecc91854563af409b71a1b15222a39c98 /engines/sludge/newfatal.cpp | |
parent | 279a53302ad27902c2e90b9ae73a42fbfe414c24 (diff) | |
download | scummvm-rg350-e7a22b59f86f40241a29ec24019ea27811deb1ab.tar.gz scummvm-rg350-e7a22b59f86f40241a29ec24019ea27811deb1ab.tar.bz2 scummvm-rg350-e7a22b59f86f40241a29ec24019ea27811deb1ab.zip |
SLUDGE: add several debug infos and exit when error
Diffstat (limited to 'engines/sludge/newfatal.cpp')
-rw-r--r-- | engines/sludge/newfatal.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sludge/newfatal.cpp b/engines/sludge/newfatal.cpp index a44290ab36..8bafd1fcf2 100644 --- a/engines/sludge/newfatal.cpp +++ b/engines/sludge/newfatal.cpp @@ -91,13 +91,15 @@ extern SDL_Event quit_event; #endif int inFatal(const char *str) { + error(str); + delete []str; #if 0 FILE *fatFile = fopen("fatal.txt", "wt"); if (fatFile) { fprintf(fatFile, "FATAL:\n%s\n", str); fclose(fatFile); } -#endif + fatalMessage = copyString(str); if (fatalMessage == NULL) fatalMessage = copyString("Out of memory"); @@ -108,7 +110,6 @@ int inFatal(const char *str) { EGL_Close(); #endif -#if 0 SDL_Quit(); atexit(displayFatal); |