diff options
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;
|