summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/clanbomber/files/1.05-no-display.patch')
-rw-r--r--games-action/clanbomber/files/1.05-no-display.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/games-action/clanbomber/files/1.05-no-display.patch b/games-action/clanbomber/files/1.05-no-display.patch
new file mode 100644
index 000000000000..7b96a8218415
--- /dev/null
+++ b/games-action/clanbomber/files/1.05-no-display.patch
@@ -0,0 +1,47 @@
+--- clanbomber/ClanBomber.h.orig 2004-01-29 04:31:28.968498024 -0500
++++ clanbomber/ClanBomber.h 2004-01-29 04:32:38.798882192 -0500
+@@ -154,13 +154,13 @@
+ static CL_String get_local_map_path();
+
+
+- virtual void init_modules()
++ virtual void init_modules(bool register_resources_only = false)
+ {
+- CL_SetupCore::init();
+- CL_SetupDisplay::init();
+- CL_SetupSound::init();
++ CL_SetupCore::init(register_resources_only);
++ CL_SetupDisplay::init(register_resources_only);
++ CL_SetupSound::init(register_resources_only);
+ #ifdef MUSIC
+- CL_SetupMikMod::init();
++ CL_SetupMikMod::init(register_resources_only);
+ #endif
+ }
+
+--- clanbomber/ClanBomber.cpp.orig 2004-02-16 18:43:26.000000000 -0800
++++ clanbomber/ClanBomber.cpp 2004-02-16 18:44:01.000000000 -0800
+@@ -82,7 +82,6 @@
+
+ try
+ {
+- init_modules();
+
+ bool fullscreen = false;
+ #ifdef WIN32
+@@ -91,6 +90,7 @@
+
+ if (argc > 1) {
+ if (strcmp (argv[1], "-datafile") == 0) {
++ init_modules(true);
+ CL_DatafileCompiler::write("clanbomber.scr", "clanbomber.dat");
+ quit_app(0);
+ }
+@@ -110,6 +110,7 @@
+ quit_app(0);
+ }
+ }
++ init_modules();
+
+ srand( (long)time(NULL) );
+