diff options
author | Bertrand Augereau | 2011-08-19 11:42:13 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-08-20 12:09:24 +0200 |
commit | eaa342fdd88227e71ee95551a064f95df3eb0dd6 (patch) | |
tree | 133eecb0aa30e4b5cdffb89fd3ce0a02f94835b3 /engines/dreamweb/stubs.cpp | |
parent | 663ca4774f2a51287212140b39a4c1e96309a06d (diff) | |
download | scummvm-rg350-eaa342fdd88227e71ee95551a064f95df3eb0dd6.tar.gz scummvm-rg350-eaa342fdd88227e71ee95551a064f95df3eb0dd6.tar.bz2 scummvm-rg350-eaa342fdd88227e71ee95551a064f95df3eb0dd6.zip |
DREAMWEB: 'setallchanges' ported to C++
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 76f6de4d7c..0adb11e3a1 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -1066,6 +1066,20 @@ void DreamGenContext::findormake(uint8 b0, uint8 b2, uint8 b3) { } } +void DreamGenContext::setallchanges() { + Change *change = (Change *)segRef(data.word(kBuffers)).ptr(kListofchanges, sizeof(Change)); + while (change->b0 != 0xff) { + if (change->location == data.byte(kReallocation)) { + al = change->b0; + ah = change->location; + cl = change->b2; + ch = change->b3; + dochange(); + } + ++change; + } +} + bool DreamGenContext::isCD() { // The original sources has two codepaths depending if the game is 'if cd' or not // This is a hack to guess which version to use with the assumption that if we have a cd version |