diff options
Diffstat (limited to 'games/megamario/patches/logfile.diff')
-rw-r--r-- | games/megamario/patches/logfile.diff | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games/megamario/patches/logfile.diff b/games/megamario/patches/logfile.diff new file mode 100644 index 0000000000..741e0ffc8e --- /dev/null +++ b/games/megamario/patches/logfile.diff @@ -0,0 +1,30 @@ +diff -Naur a/src/main.cpp b/src/main.cpp +--- a/src/main.cpp 2007-03-07 10:35:04.000000000 -0500 ++++ b/src/main.cpp 2016-08-14 16:53:05.113847723 -0400 +@@ -47,21 +47,24 @@ + NoFrameCheck = 1;
+
+ NoFrameCheck = 1;
++ out_logfile.open ("log.txt");
+
+ #else /* defined __unix__ */
+
+ int main(int argc, char *argv[])
+ {
++ char logfile[MAX_PATH];
+ char *home_dir = get_homedir();
+ snprintf(szIniFile, MAX_PATH, "%s/.megamario",
+ home_dir? home_dir:".");
+ check_and_create_dir(szIniFile);
+ snprintf(szIniFile, MAX_PATH, "%s/.megamario/mario.ini",
+ home_dir? home_dir:".");
+-
++ snprintf(logfile, MAX_PATH, "%s/.megamario/log.txt",
++ home_dir? home_dir:".");
++ out_logfile.open (logfile);
+ #endif /* defined __unix__ */
+
+- out_logfile.open ("log.txt");
+
+ dictionary * d = iniparser_new(szIniFile);
+ pixelation = iniparser_getboolean (d, "Mario:Pixelation", 1);
|