aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/script.h
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-12-24 15:30:31 +0000
committerJordi Vilalta Prat2008-12-24 15:30:31 +0000
commit6fed0af5d1acc0a629bd21cea735abfebca38271 (patch)
tree1164f2566eba302d1624a5977572767abbd52d98 /engines/groovie/script.h
parentcae7c2346f9c4fad8e8ad191e7e34b4968f27096 (diff)
downloadscummvm-rg350-6fed0af5d1acc0a629bd21cea735abfebca38271.tar.gz
scummvm-rg350-6fed0af5d1acc0a629bd21cea735abfebca38271.tar.bz2
scummvm-rg350-6fed0af5d1acc0a629bd21cea735abfebca38271.zip
Allocate just the required memory for scripts (spotted by sev)
svn-id: r35525
Diffstat (limited to 'engines/groovie/script.h')
-rw-r--r--engines/groovie/script.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/groovie/script.h b/engines/groovie/script.h
index ee4933a828..0a14dac4c4 100644
--- a/engines/groovie/script.h
+++ b/engines/groovie/script.h
@@ -71,8 +71,10 @@ private:
// Code
byte *_code;
+ uint16 _codeSize;
uint16 _currentInstruction;
byte *_savedCode;
+ uint16 _savedCodeSize;
uint16 _savedInstruction;
// Variables
@@ -111,6 +113,7 @@ private:
Common::String _debugString;
// Helper functions
+ uint8 getCodeByte(uint16 address);
uint8 readScript8bits();
uint16 readScript16bits();
uint32 readScript32bits();