aboutsummaryrefslogtreecommitdiff
path: root/scumm/bundle.cpp
diff options
context:
space:
mode:
authorChris Apers2003-08-18 10:59:21 +0000
committerChris Apers2003-08-18 10:59:21 +0000
commita47e80cb55af9baff82c86c9e9751e876c83a915 (patch)
treede1d21ac1613bac022aebda8ba23fdcee4c907b9 /scumm/bundle.cpp
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 'scumm/bundle.cpp')
-rw-r--r--scumm/bundle.cpp18
1 files changed, 18 insertions, 0 deletions
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