aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2019-02-02 13:30:44 +0100
committerBastien Bouclet2019-02-02 13:30:44 +0100
commit04edc22635f18178263b52bfcde91127f3d41a4a (patch)
tree173724c22de5cbd27b34497bfa2bf09db1196729 /engines/mohawk/riven.cpp
parentf72f71a6cc1a6bcd1b92199457165e35a6362cee (diff)
downloadscummvm-rg350-04edc22635f18178263b52bfcde91127f3d41a4a.tar.gz
scummvm-rg350-04edc22635f18178263b52bfcde91127f3d41a4a.tar.bz2
scummvm-rg350-04edc22635f18178263b52bfcde91127f3d41a4a.zip
MOHAWK: RIVEN: Add a console to quickly test all the cards
Goes through all the cards clicking on hotspots at random.
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r--engines/mohawk/riven.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index b2997690c4..2545c686b4 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -636,6 +636,17 @@ Common::SeekableReadStream *MohawkEngine_Riven::getExtrasResource(uint32 tag, ui
return _extrasFile->getResource(tag, id);
}
+Common::Array<uint16> MohawkEngine_Riven::getResourceIDList(uint32 type) const {
+ Common::Array<uint16> ids;
+
+ for (uint i = 0; i < _mhk.size(); i++) {
+ ids.push_back(_mhk[i]->getResourceIDList(type));
+ }
+
+ return ids;
+}
+
+
void MohawkEngine_Riven::delay(uint32 ms) {
uint32 startTime = _system->getMillis();