diff options
author | Bertrand Augereau | 2011-11-20 13:47:04 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-20 14:18:26 +0100 |
commit | f0ccf111f2fc348caf2e3fefe422c085d6352def (patch) | |
tree | c02f3f17f85b73293ada2ca13f1d3a70d652afe7 /engines | |
parent | 055260769cd570f255eeaf57317eb0c62fce111c (diff) | |
download | scummvm-rg350-f0ccf111f2fc348caf2e3fefe422c085d6352def.tar.gz scummvm-rg350-f0ccf111f2fc348caf2e3fefe422c085d6352def.tar.bz2 scummvm-rg350-f0ccf111f2fc348caf2e3fefe422c085d6352def.zip |
DREAMWEB: 'accesslighton' and 'accesslightoff' ported to C++
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 36 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 6 | ||||
-rw-r--r-- | engines/dreamweb/monitor.cpp | 10 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 2 |
4 files changed, 14 insertions, 40 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 6d5952c3f7..2a9b64a757 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -6152,40 +6152,6 @@ void DreamGenContext::powerlightoff() { multidump(); } -void DreamGenContext::accesslighton() { - STACK_CHECK; - di = 74; - bx = 182; - ds = data.word(kTempgraphics); - al = 8; - ah = 0; - push(di); - push(bx); - showframe(); - bx = pop(); - di = pop(); - cl = 12; - ch = 8; - multidump(); -} - -void DreamGenContext::accesslightoff() { - STACK_CHECK; - di = 74; - bx = 182; - ds = data.word(kTempgraphics); - al = 7; - ah = 0; - push(di); - push(bx); - showframe(); - bx = pop(); - di = pop(); - cl = 12; - ch = 8; - multidump(); -} - void DreamGenContext::locklighton() { STACK_CHECK; di = 56; @@ -15233,8 +15199,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) { case addr_randomaccess: randomaccess(); break; case addr_powerlighton: powerlighton(); break; case addr_powerlightoff: powerlightoff(); break; - case addr_accesslighton: accesslighton(); break; - case addr_accesslightoff: accesslightoff(); break; case addr_locklighton: locklighton(); break; case addr_locklightoff: locklightoff(); break; case addr_makecaps: makecaps(); break; diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index c74a556328..fd3fc3fd41 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -360,8 +360,6 @@ public: static const uint16 addr_makecaps = 0xc524; static const uint16 addr_locklightoff = 0xc51c; static const uint16 addr_locklighton = 0xc518; - static const uint16 addr_accesslightoff = 0xc514; - static const uint16 addr_accesslighton = 0xc510; static const uint16 addr_powerlightoff = 0xc50c; static const uint16 addr_powerlighton = 0xc508; static const uint16 addr_randomaccess = 0xc504; @@ -1497,7 +1495,7 @@ public: //void checkcoords(); //void usetext(); void chewy(); - void accesslighton(); + //void accesslighton(); void useplinth(); //void adjustlen(); //void quickquit(); @@ -1938,7 +1936,7 @@ public: void openob(); void createfile(); void userailing(); - void accesslightoff(); + //void accesslightoff(); void usehole(); void useobject(); void readdesticon(); diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 11e19b43b5..d13b7233e3 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -205,5 +205,15 @@ void DreamGenContext::showcurrentfile() { } } +void DreamGenContext::accesslighton() { + showframe((Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0), 74, 182, 8, 0); + multidump(74, 182, 12, 8); +} + +void DreamGenContext::accesslightoff() { + showframe((Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0), 74, 182, 7, 0); + multidump(74, 182, 12, 8); +} + } /*namespace dreamgen */ diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 2741c6b51e..edd4e21b89 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -304,4 +304,6 @@ void input(); void monprint(); const char *monprint(const char *string); + void accesslighton(); + void accesslightoff(); |