aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/newfatal.cpp
diff options
context:
space:
mode:
authoryinsimei2017-05-26 21:25:11 +0200
committerEugene Sandulenko2017-07-13 18:27:45 +0200
commitc4a5af22eac930b5ed8e04fede2b9e61a76ca5d6 (patch)
treed618a93acee85b1036e397604b306ff9579b7a00 /engines/sludge/newfatal.cpp
parent219044abf9841461043d6e2acf0d5a48a7c7648b (diff)
downloadscummvm-rg350-c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6.tar.gz
scummvm-rg350-c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6.tar.bz2
scummvm-rg350-c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6.zip
SLUDGE: Add namespace
Diffstat (limited to 'engines/sludge/newfatal.cpp')
-rw-r--r--engines/sludge/newfatal.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/sludge/newfatal.cpp b/engines/sludge/newfatal.cpp
index b3fa74af6c..f05de5c4c2 100644
--- a/engines/sludge/newfatal.cpp
+++ b/engines/sludge/newfatal.cpp
@@ -26,18 +26,18 @@
#include <stdlib.h>
#endif
-#include "common/debug.h"
+#include "allfiles.h"
+#include "common/debug.h"
#include "platform-dependent.h"
-#include "allfiles.h"
#include "CommonCode/version.h"
-
#include "sound.h"
-
#include "stringy.h"
#include "errors.h"
#include "graphics.h"
+namespace Sludge {
+
const char emergencyMemoryMessage[] = "Out of memory displaying error message!";
static char *fatalMessage = NULL;
@@ -85,7 +85,7 @@ extern SDL_Event quit_event;
#endif
int inFatal(const char *str) {
-#if ALLOW_FILE
+#if 0
FILE *fatFile = fopen("fatal.txt", "wt");
if (fatFile) {
fprintf(fatFile, "FATAL:\n%s\n", str);
@@ -156,3 +156,5 @@ int fatal(const char *str1, const char *str2) {
} else fatal(emergencyMemoryMessage);
return 0;
}
+
+} // End of namespace Sludge