| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/games/megamario/files/ |
Upload File : |
--- ./src/main.cpp.orig 2014-01-13 00:20:08.000000000 +0100
+++ ./src/main.cpp 2014-01-13 00:20:08.000000000 +0100
@@ -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);
@@ -238,7 +238,7 @@
if(event.key.keysym.sym == SDLK_F12)
{
- char gammel[100];
+ char *gammel = new char[100];
sprintf(gammel,"screenshots/%d.bmp",rand()%10000);
SDL_SaveBMP(screen,gammel);
delete[] gammel;
@@ -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;