aboutsummaryrefslogtreecommitdiff
path: root/games/megamario/patches
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-22 12:54:42 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:22 +0700
commit38a4d306e759c14babb0a31893f5ca1c70fcb8b3 (patch)
treed56e540d294afe7a07f667c172b7e9bc334b8a42 /games/megamario/patches
parent682163cf3e5e65e6c1c715af6c76326238f5ae25 (diff)
downloadslackbuilds-38a4d306e759c14babb0a31893f5ca1c70fcb8b3.tar.xz
games/megamario: New-style icons, fix music.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/megamario/patches')
-rw-r--r--games/megamario/patches/compilefix.diff56
-rw-r--r--games/megamario/patches/compilefix.diff.gzbin0 -> 480 bytes
-rw-r--r--games/megamario/patches/logfile.diff30
-rw-r--r--games/megamario/patches/logfile.diff.gzbin0 -> 454 bytes
-rw-r--r--games/megamario/patches/oggmusic.diff.gzbin0 -> 646 bytes
-rw-r--r--games/megamario/patches/usemp3music.diff24
6 files changed, 0 insertions, 110 deletions
diff --git a/games/megamario/patches/compilefix.diff b/games/megamario/patches/compilefix.diff
deleted file mode 100644
index 1b115a3aa176..000000000000
--- a/games/megamario/patches/compilefix.diff
+++ /dev/null
@@ -1,56 +0,0 @@
-diff -Naur a/src/SDL_gfxPrimitives.c b/src/SDL_gfxPrimitives.c
---- a/src/SDL_gfxPrimitives.c 2007-03-07 10:35:26.000000000 -0500
-+++ b/src/SDL_gfxPrimitives.c 2016-08-14 15:36:20.470686223 -0400
-@@ -10,6 +10,7 @@
- #include <stdlib.h>
- #include <math.h>
- #include <string.h>
-+#include <limits.h>
-
- #include "SDL_gfxPrimitives.h"
- #include "SDL_gfxPrimitives_font.h"
-diff -Naur a/src/global.cpp b/src/global.cpp
---- a/src/global.cpp 2007-03-07 10:34:56.000000000 -0500
-+++ b/src/global.cpp 2016-08-14 15:39:23.252692634 -0400
-@@ -9,7 +9,7 @@
-
- #include "Global.h"
- #include "unixutils.h"
--
-+#include <limits.h>
-
-
- SDL_Surface *screen;
-diff -Naur a/src/levels.cpp b/src/levels.cpp
---- a/src/levels.cpp 2007-03-07 10:35:04.000000000 -0500
-+++ b/src/levels.cpp 2016-08-14 15:38:08.660690018 -0400
-@@ -6,6 +6,7 @@
- *********************************************************************/
-
-
-+#include <limits.h>
- #include "Global.h"
- #include "unixutils.h"
-
-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 15:38:42.660691210 -0400
-@@ -10,6 +10,7 @@
- #include "iniparser.h"
- #include "unixutils.h"
- #include <time.h>
-+#include <limits.h>
-
-
- bool running;
-diff -Naur a/src/menu.cpp b/src/menu.cpp
---- a/src/menu.cpp 2007-03-07 10:35:10.000000000 -0500
-+++ b/src/menu.cpp 2016-08-14 15:40:10.108694278 -0400
-@@ -7,6 +7,7 @@
-
- #include "Global.h"
- #include "unixutils.h"
-+#include <limits.h>
-
- bool hideMenu;
-
diff --git a/games/megamario/patches/compilefix.diff.gz b/games/megamario/patches/compilefix.diff.gz
new file mode 100644
index 000000000000..51f197caf60b
--- /dev/null
+++ b/games/megamario/patches/compilefix.diff.gz
Binary files differ
diff --git a/games/megamario/patches/logfile.diff b/games/megamario/patches/logfile.diff
deleted file mode 100644
index 741e0ffc8e66..000000000000
--- a/games/megamario/patches/logfile.diff
+++ /dev/null
@@ -1,30 +0,0 @@
-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:53:05.113847723 -0400
-@@ -47,21 +47,24 @@
- NoFrameCheck = 1;
-
- NoFrameCheck = 1;
-+ out_logfile.open ("log.txt");
-
- #else /* defined __unix__ */
-
- int main(int argc, char *argv[])
- {
-+ char logfile[MAX_PATH];
- char *home_dir = get_homedir();
- snprintf(szIniFile, MAX_PATH, "%s/.megamario",
- home_dir? home_dir:".");
- check_and_create_dir(szIniFile);
- snprintf(szIniFile, MAX_PATH, "%s/.megamario/mario.ini",
- home_dir? home_dir:".");
--
-+ snprintf(logfile, MAX_PATH, "%s/.megamario/log.txt",
-+ home_dir? home_dir:".");
-+ out_logfile.open (logfile);
- #endif /* defined __unix__ */
-
-- out_logfile.open ("log.txt");
-
- dictionary * d = iniparser_new(szIniFile);
- pixelation = iniparser_getboolean (d, "Mario:Pixelation", 1);
diff --git a/games/megamario/patches/logfile.diff.gz b/games/megamario/patches/logfile.diff.gz
new file mode 100644
index 000000000000..e7ab323c29a7
--- /dev/null
+++ b/games/megamario/patches/logfile.diff.gz
Binary files differ
diff --git a/games/megamario/patches/oggmusic.diff.gz b/games/megamario/patches/oggmusic.diff.gz
new file mode 100644
index 000000000000..c6e3b13e33f9
--- /dev/null
+++ b/games/megamario/patches/oggmusic.diff.gz
Binary files differ
diff --git a/games/megamario/patches/usemp3music.diff b/games/megamario/patches/usemp3music.diff
deleted file mode 100644
index d284491e1b22..000000000000
--- a/games/megamario/patches/usemp3music.diff
+++ /dev/null
@@ -1,24 +0,0 @@
-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;