From a47e80cb55af9baff82c86c9e9751e876c83a915 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Mon, 18 Aug 2003 10:59:21 +0000 Subject: Updated globals access for PalmOS svn-id: r9759 --- scumm/bundle.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'scumm/bundle.cpp') diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp index 329929a4a9..f866ea0a98 100644 --- a/scumm/bundle.cpp +++ b/scumm/bundle.cpp @@ -23,6 +23,9 @@ #include "scumm/scumm.h" #include "scumm/bundle.h" +#ifdef __PALM_OS__ +static const int16 *imcTable; +#else static const int16 imcTable[] = { 0x0007, 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x0010, 0x0011, 0x0013, 0x0015, 0x0017, 0x0019, 0x001C, 0x001F, 0x0022, 0x0025, 0x0029, 0x002D, @@ -34,6 +37,7 @@ static const int16 imcTable[] = { 0x1706, 0x1954, 0x1BDC, 0x1EA5, 0x21B6, 0x2515, 0x28CA, 0x2CDF, 0x315B, 0x364B, 0x3BB9, 0x41B2, 0x4844, 0x4F7E, 0x5771, 0x602F, 0x69CE, 0x7462, 0x7FFF }; +#endif static const byte imxOtherTable[6][128] = { { @@ -91,6 +95,7 @@ const byte imxShortTable[] = { 0, 0, 1, 3, 7, 15, 31, 63 }; + Bundle::Bundle() { _compVoiceTable = NULL; _compMusicTable = NULL; @@ -938,3 +943,16 @@ int32 Bundle::decompressCodec(int32 codec, byte *comp_input, byte *comp_output, return output_size; } + +#ifdef __PALM_OS__ +#include "scumm_globals.h" + +_GINIT(Bundle) +_GSETPTR(imcTable, GBVARS_IMCTABLE_INDEX, int16, GBVARS_SCUMM) +_GEND + +_GRELEASE(Bundle) +_GRELEASEPTR(GBVARS_IMCTABLE_INDEX, GBVARS_SCUMM) +_GEND + +#endif -- cgit v1.2.3