freebsd-ports/games/megamario/files/patch-src-main.cpp
Jason Helfman 1e00f52e12 - add new port: games/megamario
Mega Mario is a Super Mario Bros. 1 clone.
It features everything the original features - with better graphics,
higher resolution, smoother movement and new levels.
The story of mario and Luigi continues in old-school style.

WWW: http://www.megamario.de/

PR:		167893
Submitted by:	nemysis@gmx.ch
Feature safe:	yes
2012-11-30 19:07:41 +00:00

20 lines
553 B
C++

--- src/main.cpp.orig 2012-05-06 00:56:40.000000000 +0200
+++ src/main.cpp 2012-05-06 01:03:55.000000000 +0200
@@ -61,7 +61,7 @@
#endif /* defined __unix__ */
- out_logfile.open ("log.txt");
+ out_logfile.open ("%s/.megamario/log.txt");
dictionary * d = iniparser_new(szIniFile);
pixelation = iniparser_getboolean (d, "Mario:Pixelation", 1);
@@ -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;