[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src scumm_globals.cpp,1.6,1.7 scumm_globals.h,1.11,1.12

Chris Apers chrilith at users.sourceforge.net
Tue May 25 06:21:02 CEST 2004


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

Modified Files:
	scumm_globals.cpp scumm_globals.h 
Log Message:
Added Queen support, renamed files

Index: scumm_globals.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/scumm_globals.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- scumm_globals.cpp	20 Jan 2004 14:18:08 -0000	1.6
+++ scumm_globals.cpp	25 May 2004 13:20:22 -0000	1.7
@@ -29,10 +29,12 @@
 #include "scumm.h"
 
 static void GlbInitAll() {
+	if (gVars->globals[GBVARS_COMMON]) {
+		CALL_INIT(ScummFont)
+	}
 #ifndef DISABLE_SCUMM
 	if (gVars->globals[GBVARS_SCUMM]) {
 		CALL_INIT(DimuseTables)
-		CALL_INIT(NewGui)
 		CALL_INIT(Akos)
 		CALL_INIT(DimuseCodecs)
 		CALL_INIT(Codec47)
@@ -50,17 +52,23 @@
 	}
 #endif
 #ifndef DISABLE_QUEEN
-//	if (gVars->globals[GBVARS_QUEEN]) {
-//		CALL_INIT(Queen_Restables)
-//	}
+	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]) {
 		CALL_RELEASE(DimuseTables)
-		CALL_RELEASE(NewGui)
 		CALL_RELEASE(Akos)
 		CALL_RELEASE(DimuseCodecs)
 		CALL_RELEASE(Codec47)
@@ -78,9 +86,13 @@
 	}
 #endif
 #ifndef DISABLE_QUEEN
-//	if (gVars->globals[GBVARS_QUEEN]) {
-//		CALL_RELEASE(Queen_Restables)
-//	}
+	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
 }
 
@@ -98,9 +110,10 @@
 }
 
 void GlbOpen() {
-	gVars->globals[GBVARS_SCUMM] = GlbOpenInternal("Scumm-Globals");
-	gVars->globals[GBVARS_SIMON] = GlbOpenInternal("Simon-Globals");
-	gVars->globals[GBVARS_QUEEN] = GlbOpenInternal("Queen-Globals");
+	gVars->globals[GBVARS_COMMON]= GlbOpenInternal("Glbs::Common");
+	gVars->globals[GBVARS_SCUMM] = GlbOpenInternal("Glbs::Scumm");
+	gVars->globals[GBVARS_SIMON] = GlbOpenInternal("Glbs::Simon");
+	gVars->globals[GBVARS_QUEEN] = GlbOpenInternal("Glbs::Queen");
 
 	GlbInitAll();
 }
@@ -108,6 +121,8 @@
 void GlbClose() {
 	GlbReleaseAll();
 
+	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])

Index: scumm_globals.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/scumm_globals.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- scumm_globals.h	20 Jan 2004 14:18:08 -0000	1.11
+++ scumm_globals.h	25 May 2004 13:20:22 -0000	1.12
@@ -44,9 +44,14 @@
 #define PROTO_GLOBALS(x)		void CALL_INIT(x);\
 								void CALL_RELEASE(x);
 
+
+// Common stuffs
+PROTO_GLOBALS(ScummFont)
+PROTO_GLOBALS(NewFont)
+
+// Scumm stuffs
 #ifndef DISABLE_SCUMM
 PROTO_GLOBALS(DimuseTables)
-PROTO_GLOBALS(NewGui)
 PROTO_GLOBALS(Akos)
 PROTO_GLOBALS(DimuseCodecs)
 PROTO_GLOBALS(Codec47)
@@ -56,14 +61,18 @@
 PROTO_GLOBALS(Costume)
 PROTO_GLOBALS(PlayerV2)
 #endif
-
+// Simon stuffs
 #ifndef DISABLE_SIMON
 PROTO_GLOBALS(Simon_Simon)
 PROTO_GLOBALS(Simon_Charset)
 #endif
-
+// Queen stuffs
 #ifndef DISABLE_QUEEN
+PROTO_GLOBALS(Queen_Talk)
+PROTO_GLOBALS(Queen_Display)
+PROTO_GLOBALS(Queen_Graphics)
 PROTO_GLOBALS(Queen_Restables)
+PROTO_GLOBALS(Queen_Musicdata)
 #endif
 
 #undef PROTO_GLOBALS





More information about the Scummvm-git-logs mailing list