diff options
author | Filippos Karapetis | 2011-12-09 18:19:17 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-09 18:19:17 +0200 |
commit | 6d1ab6d8cd3a928d456f533158358067ff318f03 (patch) | |
tree | 142662e182b4be648430abb2428f0117e09de1b7 /engines | |
parent | 447f0c664359f62330d91be20d49d66b9fb420fb (diff) | |
download | scummvm-rg350-6d1ab6d8cd3a928d456f533158358067ff318f03.tar.gz scummvm-rg350-6d1ab6d8cd3a928d456f533158358067ff318f03.tar.bz2 scummvm-rg350-6d1ab6d8cd3a928d456f533158358067ff318f03.zip |
DREAMWEB: Port 'monitorlogo' to C++
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 21 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/monitor.cpp | 17 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 1 |
4 files changed, 17 insertions, 23 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 93d0e171d7..28dfa9d5b1 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -3866,27 +3866,6 @@ finishpars: di = offset_operand1; } -void DreamGenContext::monitorLogo() { - STACK_CHECK; - al = data.byte(kLogonum); - _cmp(al, data.byte(kOldlogonum)); - if (flags.z()) - goto notnewlogo; - data.byte(kOldlogonum) = al; - printLogo(); - printUnderMon(); - workToScreen(); - printLogo(); - printLogo(); - al = 26; - playChannel1(); - cx = 20; - randomAccess(); - return; -notnewlogo: - printLogo(); -} - void DreamGenContext::processTrigger() { STACK_CHECK; _cmp(data.byte(kLasttrigger), '1'); diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index d645ce70ac..e73f2244fd 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -574,7 +574,6 @@ public: void removeObFromInv(); void heavy(); void useKey(); - void monitorLogo(); void dirFile(); void pickupConts(); void allPalette(); diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 49cd800b48..f01664632a 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -54,7 +54,7 @@ void DreamGenContext::useMon() { printOuterMon(); initialMonCols(); printLogo(); - workToScreen(); + workToScreenCPP(); turnOnPower(); fadeupYellows(); fadeupMonFirst(); @@ -97,6 +97,21 @@ void DreamGenContext::useMon() { workToScreenM(); } +void DreamGenContext::monitorLogo() { + if (data.byte(kLogonum) != data.byte(kOldlogonum)) { + data.byte(kOldlogonum) = data.byte(kLogonum); + printLogo(); + printUnderMon(); + workToScreenCPP(); + printLogo(); + printLogo(); + playChannel1(26); + randomAccess(20); + } else { + printLogo(); + } +} + void DreamBase::printLogo() { showFrame(tempGraphics(), 56, 32, 0, 0); showCurrentFile(); diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 3d29351df7..943032523b 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -562,5 +562,6 @@ void hangOnPQ(); void showGun(); void endGame(); + void monitorLogo(); #endif |