summaryrefslogtreecommitdiff
path: root/games/megamario/patches/usemp3music.diff
blob: d284491e1b220b6e9daa4f2a6226658dd1787938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;