diff options
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 |
commit | 40ba4e09f47559ebcaf87f2045ec435dee3ae6e9 (patch) | |
tree | 993d02ac323d4cec1481a00f14e7f6121f36c717 /games/megamario/patches/usemp3music.diff | |
parent | 9f7821b5b88d2a520a3c975fa28b3e71ad5ecfe4 (diff) | |
download | slackbuilds-40ba4e09f47559ebcaf87f2045ec435dee3ae6e9.tar.gz |
games/megamario: Added (Super Mario Brothers clone).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/megamario/patches/usemp3music.diff')
-rw-r--r-- | games/megamario/patches/usemp3music.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games/megamario/patches/usemp3music.diff b/games/megamario/patches/usemp3music.diff new file mode 100644 index 0000000000..d284491e1b --- /dev/null +++ b/games/megamario/patches/usemp3music.diff @@ -0,0 +1,24 @@ +diff -Naur a/src/functions.cpp b/src/functions.cpp +--- a/src/functions.cpp 2007-03-07 10:34:56.000000000 -0500 ++++ b/src/functions.cpp 2016-08-14 16:26:04.208790873 -0400 +@@ -447,7 +447,7 @@ + }
+ else
+ {
+- sprintf(tmp, "mp3music/%s",filename);
++ sprintf(tmp, DATADIR "mp3music/%s",filename);
+ tmp[strlen(tmp)-3]='m';
+ tmp[strlen(tmp)-2]='p';
+ tmp[strlen(tmp)-1]='3';
+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:25:41.230790067 -0400 +@@ -413,7 +413,7 @@ +
+
+ fstream fin;
+-fin.open("mp3music/music_available.dat",ios::in);
++fin.open(DATADIR "mp3music/music_available.dat",ios::in);
+ if( fin.is_open() )
+ {
+ HighQualityMusicFound=1;
|