aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter.h
diff options
context:
space:
mode:
authorSven Hesse2008-05-28 21:15:11 +0000
committerSven Hesse2008-05-28 21:15:11 +0000
commit8da68b29648f9dbdcc05b3a1efe4a29ed2c4e88c (patch)
tree7f2416cbf176f53a871b0cc3bea4785284ba4889 /engines/gob/inter.h
parentc9fd5fef7645cc7ba6e14ddfeaab91d941f3b8f7 (diff)
downloadscummvm-rg350-8da68b29648f9dbdcc05b3a1efe4a29ed2c4e88c.tar.gz
scummvm-rg350-8da68b29648f9dbdcc05b3a1efe4a29ed2c4e88c.tar.bz2
scummvm-rg350-8da68b29648f9dbdcc05b3a1efe4a29ed2c4e88c.zip
Script variables are now always stored in the game version's native endianess.
This should make Woodruff playable on big-endian systems. svn-id: r32352
Diffstat (limited to 'engines/gob/inter.h')
-rw-r--r--engines/gob/inter.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h
index e43cb4e891..60b3974d6d 100644
--- a/engines/gob/inter.h
+++ b/engines/gob/inter.h
@@ -27,6 +27,7 @@
#define GOB_INTER_H
#include "gob/goblin.h"
+#include "gob/variables.h"
namespace Gob {
@@ -48,6 +49,8 @@ public:
uint32 _soundEndTimeKey;
int16 _soundStopVal;
+ Variables *_variables;
+
void initControlVars(char full);
int16 load16();
char evalExpr(int16 *pRes);
@@ -59,11 +62,14 @@ public:
void funcBlock(int16 retFlag);
void callSub(int16 retFlag);
+ void allocateVars(uint32 count);
+ void delocateVars();
+
virtual int16 loadSound(int16 slot) = 0;
virtual void animPalette() = 0;
Inter(GobEngine *vm);
- virtual ~Inter() {}
+ virtual ~Inter();
protected:
struct OpFuncParams {
@@ -83,7 +89,7 @@ protected:
int16 _animPalHighIndex[8];
int16 _animPalDir[8];
- char _pasteBuf[300];
+ byte _pasteBuf[300];
byte _pasteSizeBuf[300];
int16 _pastePos;