diff options
author | Bertrand Augereau | 2011-11-30 10:53:59 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-30 10:53:59 +0100 |
commit | 5eb79fc6f4fd1c96ed8ddbed939a2e9009373688 (patch) | |
tree | edf4af378056d970bb5968d2618c3550da62796a | |
parent | 5d704ef12f3d388f32dcbb6ce8dc7b76fdeb7c62 (diff) | |
download | scummvm-rg350-5eb79fc6f4fd1c96ed8ddbed939a2e9009373688.tar.gz scummvm-rg350-5eb79fc6f4fd1c96ed8ddbed939a2e9009373688.tar.bz2 scummvm-rg350-5eb79fc6f4fd1c96ed8ddbed939a2e9009373688.zip |
DREAMWEB: Removed a few unused stubs
-rwxr-xr-x | devtools/tasmrecover/tasm-recover | 3 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 38 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 6 |
3 files changed, 3 insertions, 44 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover index 22fa9efa41..79749bd40e 100755 --- a/devtools/tasmrecover/tasm-recover +++ b/devtools/tasmrecover/tasm-recover @@ -314,6 +314,9 @@ generator = cpp(context, "DreamGen", blacklist = [ 'setlocation', 'loadtemptext', 'loadtraveltext', + 'steady', + 'constant', + 'random', ], skip_output = [ # These functions are processed but not output 'dreamweb', diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 99be36006c..98c9855ad3 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -2104,44 +2104,6 @@ hissnoise: playchannel1(); } -void DreamGenContext::random() { - STACK_CHECK; - randomnum1(); - push(di); - _and(ax, 7); - _add(di, 18); - _add(di, ax); - al = ds.byte(di); - di = pop(); - es.byte(bx+15) = al; -} - -void DreamGenContext::steady() { - STACK_CHECK; - al = ds.byte(di+18); - ds.byte(di+17) = al; - es.byte(bx+15) = al; -} - -void DreamGenContext::constant() { - STACK_CHECK; - _inc(es.byte(bx+19)); - cl = es.byte(bx+19); - ch = 0; - _add(di, cx); - _cmp(ds.byte(di+18), 255); - if (!flags.z()) - goto gotconst; - _sub(di, cx); - cx = 0; - es.byte(bx+19) = cl; -gotconst: - al = ds.byte(di+18); - _sub(di, cx); - es.byte(bx+15) = al; - ds.byte(di+17) = al; -} - void DreamGenContext::soundonreels() { STACK_CHECK; bl = data.byte(kReallocation); diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index d4e6e083fe..e8642e83ca 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -434,9 +434,6 @@ public: static const uint16 addr_showpcx = 0xc1cc; static const uint16 addr_deleverything = 0xc1c0; static const uint16 addr_soundonreels = 0xc1a8; - static const uint16 addr_constant = 0xc184; - static const uint16 addr_steady = 0xc180; - static const uint16 addr_random = 0xc17c; static const uint16 addr_liftnoise = 0xc178; static const uint16 addr_backobject = 0xc170; static const uint16 addr_reminders = 0xc15c; @@ -1331,14 +1328,12 @@ public: void rollendcredits(); void intro1text(); void transfertoex(); - void steady(); void reexfrominv(); void examinventory(); void getridoftemp3(); void usedryer(); void outofinv(); void diarykeyp(); - void random(); void mainman(); void mansatstill(); void channel1only(); @@ -1352,7 +1347,6 @@ public: void madman(); void enablesoundint(); void madmanstelly(); - void constant(); void purgealocation(); void sparkydrip(); void getridofpit(); |