aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2003-08-18 10:59:21 +0000
committerChris Apers2003-08-18 10:59:21 +0000
commita47e80cb55af9baff82c86c9e9751e876c83a915 (patch)
treede1d21ac1613bac022aebda8ba23fdcee4c907b9 /backends
parent3c5f641f482ea799f59dcd3759d06bde1f57cff8 (diff)
downloadscummvm-rg350-a47e80cb55af9baff82c86c9e9751e876c83a915.tar.gz
scummvm-rg350-a47e80cb55af9baff82c86c9e9751e876c83a915.tar.bz2
scummvm-rg350-a47e80cb55af9baff82c86c9e9751e876c83a915.zip
Updated globals access for PalmOS
svn-id: r9759
Diffstat (limited to 'backends')
-rw-r--r--backends/PalmOS/Src/scumm_globals.h45
1 files changed, 24 insertions, 21 deletions
diff --git a/backends/PalmOS/Src/scumm_globals.h b/backends/PalmOS/Src/scumm_globals.h
index 8b9ef90c5c..3dd5f08715 100644
--- a/backends/PalmOS/Src/scumm_globals.h
+++ b/backends/PalmOS/Src/scumm_globals.h
@@ -29,7 +29,7 @@
#define GBVARS_FTSEQMUSICTABLE_INDEX 6
#define GBVARS_GUIFONT_INDEX 7
#define GBVARS_DEFAULTSCALETABLE_INDEX 8
-#define GBVARS_CODEC37TABLE_INDEX 9
+#define GBVARS_IMCTABLE_INDEX 9
#define GBVARS_CODEC47TABLE_INDEX 10
#define GBVARS_TRANSITIONEFFECTS_INDEX 11
#define GBVARS_STRINGMAPTABLEV7_INDEX 12
@@ -40,34 +40,37 @@
#define GBVARS_ENGLISHCHARSETDATAV2_INDEX 17
#define GBVARS_ITALIANCHARSETDATAV2_INDEX 18
#define GBVARS_SPANISHCHARSETDATAV2_INDEX 19
+#define GBVARS_COSTSCALETABLE_INDEX 20
#define GBVARS_SCUMM 0
#define GBVARS_SIMON 1
#define GBVARS_SKY 2
+#define GBVARS_SWORD2 3
-#define GSETPTR(var,index,format,id) var = (format *)GBGetRecord(index,id);
-#define GRELEASEPTR(index,id) GBReleaseRecord(index,id);
+#define _GINIT(x) void initGlobals_##x() {
+#define _GEND }
+#define _GRELEASE(x) void releaseGlobals_##x() {
-void *GBGetRecord(UInt16 index, UInt16 id);
-void GBReleaseRecord(UInt16 index, UInt16 id);
-
-void IMuseDigital_initGlobals();
-void IMuseDigital_releaseGlobals();
+#define CALL_INIT(x) initGlobals_##x();
+#define CALL_RELEASE(x) releaseGlobals_##x();
-void NewGui_initGlobals();
-void NewGui_releaseGlobals();
+#define _GSETPTR(var,index,format,id) var = (format *)GBGetRecord(index,id);
+#define _GRELEASEPTR(index,id) GBReleaseRecord(index,id);
-void Codec47_initGlobals();
-void Codec47_releaseGlobals();
-
-void Gfx_initGlobals();
-void Gfx_releaseGlobals();
+void *GBGetRecord(UInt16 index, UInt16 id);
+void GBReleaseRecord(UInt16 index, UInt16 id);
-void Akos_initGlobals();
-void Akos_releaseGlobals();
+#define PROTO_GLOBALS(x) void CALL_INIT(x);\
+ void CALL_RELEASE(x);
-void Dialogs_initGlobals();
-void Dialogs_releaseGlobals();
+PROTO_GLOBALS(IMuseDigital)
+PROTO_GLOBALS(NewGui)
+PROTO_GLOBALS(Akos)
+PROTO_GLOBALS(Bundle)
+PROTO_GLOBALS(Codec47)
+PROTO_GLOBALS(Gfx)
+PROTO_GLOBALS(Dialogs)
+PROTO_GLOBALS(Charset)
+PROTO_GLOBALS(Costume)
-void Charset_initGlobals();
-void Charset_releaseGlobals();
+#undef PROTO_GLOBALS \ No newline at end of file