summaryrefslogtreecommitdiff
path: root/games/mirrormagic/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/mirrormagic/files')
-rw-r--r--games/mirrormagic/files/patch-src-main.h10
-rw-r--r--games/mirrormagic/files/patch-src_Makefile31
-rw-r--r--games/mirrormagic/files/patch-src_libgame_system.c10
-rw-r--r--games/mirrormagic/files/patch-src_main.c20
4 files changed, 61 insertions, 10 deletions
diff --git a/games/mirrormagic/files/patch-src-main.h b/games/mirrormagic/files/patch-src-main.h
deleted file mode 100644
index a2fa3e69df56..000000000000
--- a/games/mirrormagic/files/patch-src-main.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/main.h.orig Sat Jun 7 20:04:37 2003
-+++ src/main.h Thu Nov 1 02:12:04 2007
-@@ -459,7 +459,6 @@
- #endif
- extern struct HiScore highscore[];
- extern struct TapeInfo tape;
--extern struct JoystickInfo joystick[];
- extern struct SetupInfo setup;
- extern struct GameInfo game;
- extern struct LaserInfo laser;
diff --git a/games/mirrormagic/files/patch-src_Makefile b/games/mirrormagic/files/patch-src_Makefile
new file mode 100644
index 000000000000..1ec43eaa7df0
--- /dev/null
+++ b/games/mirrormagic/files/patch-src_Makefile
@@ -0,0 +1,31 @@
+--- src/Makefile.orig 2018-04-10 19:44:08 UTC
++++ src/Makefile
+@@ -101,7 +101,7 @@ endif
+
+ CONFIG = $(CONFIG_RO_GAME_DIR) $(CONFIG_RW_GAME_DIR) $(JOYSTICK)
+
+-DEBUG = -DDEBUG -g
++DEBUG =
+
+ # PROFILING = $(PROFILING_FLAGS)
+
+@@ -119,8 +119,8 @@ SYS_LDFLAGS := $(shell echo $(SYS_LDFLAGS) | \
+ OPTIONS = -O3 -Wall
+ endif
+
+-CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG)
+-LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm
++CFLAGS += $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG)
++LDFLAGS += $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm
+
+
+ SRCS = main.c \
+@@ -221,7 +221,7 @@ GRAPHICS_DIR = ../graphics
+ all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir game_mm_dir $(PROGNAME) graphics_dir
+
+ $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
+- $(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
++ $(CC) $(PROFILING) $(RNDLIBS) $(OBJS) $(ICON) $(LDFLAGS) -o $(PROGNAME)
+ ifdef BUILD_DIST
+ strip $(PROGNAME)
+ endif
diff --git a/games/mirrormagic/files/patch-src_libgame_system.c b/games/mirrormagic/files/patch-src_libgame_system.c
new file mode 100644
index 000000000000..dffd7522d0f4
--- /dev/null
+++ b/games/mirrormagic/files/patch-src_libgame_system.c
@@ -0,0 +1,10 @@
+--- src/libgame/system.c.orig 2018-04-10 19:44:08 UTC
++++ src/libgame/system.c
+@@ -1579,6 +1579,7 @@ void SetAudioMode(boolean enabled)
+
+ boolean PendingEvent(void)
+ {
++ SDL_PumpEvents();
+ return (SDL_PollEvent(NULL) ? TRUE : FALSE);
+ }
+
diff --git a/games/mirrormagic/files/patch-src_main.c b/games/mirrormagic/files/patch-src_main.c
new file mode 100644
index 000000000000..d76e7a8686c5
--- /dev/null
+++ b/games/mirrormagic/files/patch-src_main.c
@@ -0,0 +1,20 @@
+--- src/main.c.orig 2018-04-10 19:44:08 UTC
++++ src/main.c
+@@ -69,7 +69,7 @@ short ExplodeDelay[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+ int RunnerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+ int PlayerVisit[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+
+-int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
++extern int GfxFrame[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+ int GfxRandom[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+ int GfxElement[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+ int GfxAction[MAX_LEV_FIELDX][MAX_LEV_FIELDY];
+@@ -138,7 +138,7 @@ struct LevelInfo level, level_template;
+ struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
+ struct HiScore highscore[MAX_SCORE_ENTRIES];
+ struct TapeInfo tape;
+-struct SetupInfo setup;
++extern struct SetupInfo setup;
+ struct GameInfo game;
+ struct GlobalInfo global;
+ struct BorderInfo border;