aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/runtime.h
diff options
context:
space:
mode:
authorVladimir2011-06-07 02:26:37 +0400
committerAlyssa Milburn2011-06-15 17:31:09 +0200
commit9d53cefa53349c5717e3f585445664b56361c4de (patch)
tree458dc6218b7c97e187c63c94a8a7b683a444d05c /engines/dreamweb/runtime.h
parentd9e4fb5d0e2b0239478d9d7030ddd1150707cd68 (diff)
downloadscummvm-rg350-9d53cefa53349c5717e3f585445664b56361c4de.tar.gz
scummvm-rg350-9d53cefa53349c5717e3f585445664b56361c4de.tar.bz2
scummvm-rg350-9d53cefa53349c5717e3f585445664b56361c4de.zip
DREAMWEB: added allocateSegment, added some stubs
Diffstat (limited to 'engines/dreamweb/runtime.h')
-rw-r--r--engines/dreamweb/runtime.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h
index 6b5f650fc6..bcc7c383a7 100644
--- a/engines/dreamweb/runtime.h
+++ b/engines/dreamweb/runtime.h
@@ -209,6 +209,14 @@ public:
return SegmentRef(this, value, &i->_value);
}
+ SegmentRef allocateSegment(uint size) {
+ unsigned id = kDefaultDataSegment + _segments.size();
+ assert(!_segments.contains(id));
+ Segment &seg = _segments[id];
+ seg.data.resize(size);
+ return SegmentRef(this, id, &seg);
+ }
+
inline void _cmp(uint8 a, uint8 b) {
uint8 x = a;
_sub(x, b);