[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src scumm_globals.cpp,1.8,1.9

Chris Apers chrilith at users.sourceforge.net
Mon Dec 20 09:22:02 CET 2004


Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2372

Modified Files:
	scumm_globals.cpp 
Log Message:
Cleanup

Index: scumm_globals.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/scumm_globals.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- scumm_globals.cpp	9 Nov 2004 10:57:22 -0000	1.8
+++ scumm_globals.cpp	20 Dec 2004 17:21:06 -0000	1.9
@@ -29,8 +29,8 @@
 	if (gVars->globals[GBVARS_COMMON]) {
 		CALL_INIT(ScummFont)
 	}
+	if (gVars->globals[GBVARS_ENGINE]) {
 #ifndef DISABLE_SCUMM
-	if (gVars->globals[GBVARS_SCUMM]) {
 		CALL_INIT(DimuseTables)
 		CALL_INIT(Akos)
 		CALL_INIT(DimuseCodecs)
@@ -40,36 +40,34 @@
 		CALL_INIT(Charset)
 		CALL_INIT(Costume)
 		CALL_INIT(PlayerV2)
-	}
 #endif
 #ifndef DISABLE_SIMON
-	if (gVars->globals[GBVARS_SIMON]) {
 		CALL_INIT(Simon_Simon)
+		CALL_INIT(Simon_Cursor)
 		CALL_INIT(Simon_Charset)
-	}
+#endif
+#ifndef DISABLE_SKY
+		CALL_INIT(Sky_Hufftext)
 #endif
 #ifndef DISABLE_SWORD1
-	if (gVars->globals[GBVARS_SWORD1]) {
 		CALL_INIT(Sword1_fxList)
-	}
 #endif
 #ifndef DISABLE_QUEEN
-	if (gVars->globals[GBVARS_QUEEN]) {
 		CALL_INIT(Queen_Talk)
 		CALL_INIT(Queen_Display)
 		CALL_INIT(Queen_Graphics)
 		CALL_INIT(Queen_Restables)
 		CALL_INIT(Queen_Musicdata)
-	}
 #endif
+	}
 }
 
 static void GlbReleaseAll() {
 	if (gVars->globals[GBVARS_COMMON]) {
 		CALL_RELEASE(ScummFont)
 	}
-#ifndef DISABLE_SCUMM
 	if (gVars->globals[GBVARS_SCUMM]) {
+#ifndef DISABLE_SCUMM
 		CALL_RELEASE(DimuseTables)
 		CALL_RELEASE(Akos)
 		CALL_RELEASE(DimuseCodecs)
@@ -79,28 +77,26 @@
 		CALL_RELEASE(Charset)
 		CALL_RELEASE(Costume)
 		CALL_RELEASE(PlayerV2)
-	}
 #endif
 #ifndef DISABLE_SIMON
-	if (gVars->globals[GBVARS_SIMON]) {
 		CALL_RELEASE(Simon_Simon)
+		CALL_RELEASE(Simon_Cursor)
 		CALL_RELEASE(Simon_Charset)
-	}
+#endif
+#ifndef DISABLE_SKY
+		CALL_RELEASE(Sky_Hufftext)
 #endif
 #ifndef DISABLE_SWORD1
-	if (gVars->globals[GBVARS_SWORD1]) {
 		CALL_RELEASE(Sword1_fxList)
-	}
 #endif
 #ifndef DISABLE_QUEEN
-	if (gVars->globals[GBVARS_QUEEN]) {
 		CALL_RELEASE(Queen_Talk)
 		CALL_RELEASE(Queen_Display)
 		CALL_RELEASE(Queen_Graphics)
 		CALL_RELEASE(Queen_Restables)
 		CALL_RELEASE(Queen_Musicdata)
-	}
 #endif
+	}
 }
 
 //TODO : use Boolean instead of void to check err
@@ -118,11 +114,7 @@
 
 void GlbOpen() {
 	gVars->globals[GBVARS_COMMON]= GlbOpenInternal("Glbs::Common");
-	gVars->globals[GBVARS_SCUMM] = GlbOpenInternal("Glbs::Scumm");
-	gVars->globals[GBVARS_SWORD1]= GlbOpenInternal("Glbs::Sword1");
-	gVars->globals[GBVARS_SIMON] = GlbOpenInternal("Glbs::Simon");
-	gVars->globals[GBVARS_QUEEN] = GlbOpenInternal("Glbs::Queen");
-
+	gVars->globals[GBVARS_SCUMM] = GlbOpenInternal("Glbs::Engine");
 	GlbInitAll();
 }
 
@@ -131,14 +123,8 @@
 
 	if (gVars->globals[GBVARS_COMMON])
 		DmCloseDatabase(gVars->globals[GBVARS_COMMON]);
-	if (gVars->globals[GBVARS_SCUMM])
-		DmCloseDatabase(gVars->globals[GBVARS_SCUMM]);
-	if (gVars->globals[GBVARS_SIMON])
-		DmCloseDatabase(gVars->globals[GBVARS_SIMON]);
-	if (gVars->globals[GBVARS_SWORD1])
-		DmCloseDatabase(gVars->globals[GBVARS_SWORD1]);
-	if (gVars->globals[GBVARS_QUEEN])
-		DmCloseDatabase(gVars->globals[GBVARS_QUEEN]);
+	if (gVars->globals[GBVARS_ENGINE])
+		DmCloseDatabase(gVars->globals[GBVARS_ENGINE]);
 }
 
 void *GlbGetRecord(UInt16 index, UInt16 id) {





More information about the Scummvm-git-logs mailing list