diff options
author | yinsimei | 2017-05-26 21:25:11 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6 (patch) | |
tree | d618a93acee85b1036e397604b306ff9579b7a00 /engines/sludge/builtin.cpp | |
parent | 219044abf9841461043d6e2acf0d5a48a7c7648b (diff) | |
download | scummvm-rg350-c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6.tar.gz scummvm-rg350-c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6.tar.bz2 scummvm-rg350-c4a5af22eac930b5ed8e04fede2b9e61a76ca5d6.zip |
SLUDGE: Add namespace
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index 9ba633de65..6f2660db0d 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -56,6 +56,8 @@ #include "graphics.h" #include "CommonCode/utf8.h" +namespace Sludge { + extern char *gamePath; int speechMode = 0; @@ -308,7 +310,7 @@ builtIn(fileExists) { char *aaaaa = encodeFilename(loadNow); delete loadNow; if (failSecurityCheck(aaaaa)) return BR_ERROR; -#if ALLOW_FILE +#if 0 FILE *fp = fopen(aaaaa, "rb"); if (!fp) { char currentDir[1000]; @@ -324,8 +326,10 @@ builtIn(fileExists) { debugOut("Error: Failed changing to directory %s\n", currentDir); } } +#endif // Return value - setVariable(fun -> reg, SVT_INT, (fp != NULL)); + setVariable(fun -> reg, SVT_INT, 0/*(fp != NULL)*/);//TODO:false value +#if 0 if (fp) fclose(fp); delete[] aaaaa; loadNow = NULL; @@ -2543,3 +2547,4 @@ builtReturn callBuiltIn(int whichFunc, int numParams, loadedFunction *fun) { return BR_ERROR; } +} // End of namespace Sludge |