aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource_v7he.cpp
diff options
context:
space:
mode:
authorMax Horn2005-04-09 20:22:31 +0000
committerMax Horn2005-04-09 20:22:31 +0000
commit81e34e9110f88cd92227d451d153bd336a3902c1 (patch)
treec4e95bef98dc7ede51e466c7f87f35b9e0342fdf /scumm/resource_v7he.cpp
parentd271b58aa78875983143c07facac596cd393f9f0 (diff)
downloadscummvm-rg350-81e34e9110f88cd92227d451d153bd336a3902c1.tar.gz
scummvm-rg350-81e34e9110f88cd92227d451d153bd336a3902c1.tar.bz2
scummvm-rg350-81e34e9110f88cd92227d451d153bd336a3902c1.zip
Overload getStringAddress in subclasses; moved V6-V8 specific res stuff to resource.cpp
svn-id: r17489
Diffstat (limited to 'scumm/resource_v7he.cpp')
-rw-r--r--scumm/resource_v7he.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/resource_v7he.cpp b/scumm/resource_v7he.cpp
index 8580920dba..ced6b0758a 100644
--- a/scumm/resource_v7he.cpp
+++ b/scumm/resource_v7he.cpp
@@ -1753,4 +1753,11 @@ void ScummEngine_v72he::readMAXS(int blockSize) {
_dynamicRoomOffsets = true;
}
+byte *ScummEngine_v72he::getStringAddress(int i) {
+ byte *addr = getResourceAddress(rtString, i);
+ if (addr == NULL)
+ return NULL;
+ return ((ScummEngine_v72he::ArrayHeader *)addr)->data;
+}
+
} // End of namespace Scumm