summaryrefslogtreecommitdiffstats
path: root/games/megamario/patches/logfile.diff
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2016-08-15 00:50:09 +0100
committer David Spencer <idlemoor@slackbuilds.org>2016-08-15 00:50:09 +0100
commit40ba4e09f47559ebcaf87f2045ec435dee3ae6e9 (patch)
tree993d02ac323d4cec1481a00f14e7f6121f36c717 /games/megamario/patches/logfile.diff
parent9f7821b5b88d2a520a3c975fa28b3e71ad5ecfe4 (diff)
downloadslackbuilds-40ba4e09f47559ebcaf87f2045ec435dee3ae6e9.tar.gz
slackbuilds-40ba4e09f47559ebcaf87f2045ec435dee3ae6e9.tar.xz
games/megamario: Added (Super Mario Brothers clone).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/megamario/patches/logfile.diff')
-rw-r--r--games/megamario/patches/logfile.diff30
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);