summaryrefslogtreecommitdiff
blob: 7b96a82184155553e1e54f6dd50416c29ac30bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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) );