diff options
author | Filippos Karapetis | 2011-12-12 12:07:09 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-12 12:07:09 +0200 |
commit | 9a420d232fe55f85ef7c418b3e0c0a26ffacf69e (patch) | |
tree | 6fe708c1fc1ba35a8cd0e71bc50ae3a1f4ccc3a6 | |
parent | fb7246f3ded3958b0f12657c2d2d238ebac86b34 (diff) | |
download | scummvm-rg350-9a420d232fe55f85ef7c418b3e0c0a26ffacf69e.tar.gz scummvm-rg350-9a420d232fe55f85ef7c418b3e0c0a26ffacf69e.tar.bz2 scummvm-rg350-9a420d232fe55f85ef7c418b3e0c0a26ffacf69e.zip |
DREAMWEB: Remove a lot of unused/unneeded variables
-rwxr-xr-x | devtools/tasmrecover/tasm-recover | 22 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 268 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 238 | ||||
-rw-r--r-- | engines/dreamweb/sound.cpp | 5 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 6 |
5 files changed, 262 insertions, 277 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover index c53360f8d7..50c9f22c7d 100755 --- a/devtools/tasmrecover/tasm-recover +++ b/devtools/tasmrecover/tasm-recover @@ -111,6 +111,28 @@ p = parser(skip_binary_data = [ 'currentframe', 'takeoff', 'reelpointer', + 'needsoundbuff', + 'oldint8seg', + 'oldint8add', + 'oldint9seg', + 'oldint9add', + 'soundbuffer', + 'soundbufferad', + 'soundbufferpage', + 'soundtimes', + 'oldsoundintseg', + 'oldsoundintadd', + 'soundbaseadd', + 'dsp_status', + 'dsp_write', + 'dmaaddress', + 'soundint', + 'sounddmachannel', + 'sampleplaying', + 'testresult', + 'currentirq', + 'gameerror', + 'howmuchalloc', # vgagrafx.asm 'cityname', 'extragraphics1', diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index aeed1c265e..8fd359ff12 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -3079,14 +3079,14 @@ void DreamGenContext::getDestInfo() { push(ax); dx = data; es = dx; - si = 1321; + si = 1287; _add(si, ax); cl = es.byte(si); ax = pop(); push(cx); dx = data; es = dx; - si = 1337; + si = 1303; _add(si, ax); ax = pop(); } @@ -3138,7 +3138,7 @@ clearedlocations: bx = ax; dx = data; es = dx; - _add(bx, 1321); + _add(bx, 1287); es.byte(bx) = 0; } @@ -3174,7 +3174,7 @@ void DreamGenContext::execCommand() { es = cs; bx = offset_comlist; ds = cs; - si = 1355; + si = 1321; al = ds.byte(si); _cmp(al, 0); if (!flags.z()) @@ -3267,7 +3267,7 @@ dirroot: si = offset_rootdir; _inc(si); es = cs; - di = 1197; + di = 1163; _inc(di); cx = 12; _movsb(cx, true); @@ -3369,7 +3369,7 @@ notyetassigned: push(bx); _add(bx, 2); ds = cs; - si = 1355; + si = 1321; checkpass: _lodsw(); ah = es.byte(bx); @@ -3440,7 +3440,7 @@ void DreamGenContext::read() { return; okcom: es = cs; - di = 1197; + di = 1163; ax = data.word(kTextfile1); data.word(kMonsource) = ax; ds = ax; @@ -3570,7 +3570,7 @@ keyok2: ds = cs; si = offset_operand1+1; es = cs; - di = 1197+1; + di = 1163+1; cx = 12; _movsb(cx, true); monitorLogo(); @@ -3697,7 +3697,7 @@ void DreamGenContext::parser() { al = '='; _stosb(); ds = cs; - si = 1355; + si = 1321; notspace1: _lodsw(); _cmp(al, 32); @@ -5613,7 +5613,7 @@ notalley: void DreamGenContext::clearBuffers() { STACK_CHECK; es = data.word(kBuffers); - cx = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+975-518+68-0)/2; + cx = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+941-484+68-0)/2; ax = 0; di = 0; _stosw(cx, true); @@ -5625,11 +5625,11 @@ void DreamGenContext::clearBuffers() { es = data.word(kBuffers); di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)); ds = cs; - si = 518; - cx = (975-518); + si = 484; + cx = (941-484); _movsb(cx, true); es = data.word(kBuffers); - di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+975-518); + di = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+941-484); ds = cs; si = 0; cx = (68-0); @@ -5647,11 +5647,11 @@ void DreamGenContext::clearChanges() { ds = data.word(kBuffers); si = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)); es = cs; - di = 518; - cx = (975-518); + di = 484; + cx = (941-484); _movsb(cx, true); ds = data.word(kBuffers); - si = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+975-518); + si = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+941-484); es = cs; di = 0; cx = (68-0); @@ -5665,7 +5665,7 @@ void DreamGenContext::clearChanges() { di = 0; _stosw(cx, true); es = cs; - di = 1321; + di = 1287; al = 1; _stosb(2); al = 0; @@ -5900,133 +5900,133 @@ void DreamGenContext::__start() { //0x0130: .... .... .... .... 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0140: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0150: .... .... .... .... - 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0160: .... .... .... .... - 0x01, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, //0x0170: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, //0x0180: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, - //0x0190: .... .... .... .... 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + //0x0190: .... .... .... .... + 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x01a0: .... .... .... .... - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x01b0: .... .... .... .... - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - //0x01c0: .... .... .... .... 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + //0x01c0: .... .... .... .... + 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x01d0: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - //0x01e0: .... .... .... .... - 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - //0x01f0: .... .... .... .... - 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2c, 0x00, 0x14, 0x00, 0x02, 0x00, 0x01, 0x01, 0x37, - //0x0200: .... ..., .... ...7 - 0x00, 0x00, 0x00, 0x32, 0x14, 0x00, 0x18, 0x16, 0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x18, 0x21, - //0x0210: ...2 .... .J.. ...! - 0x0a, 0x4b, 0x00, 0x01, 0x00, 0x01, 0x01, 0x2c, 0x00, 0x1b, 0x00, 0x02, 0x00, 0x02, 0x01, 0x2c, - //0x0220: .K.. ..., .... ..., - 0x00, 0x60, 0x00, 0x03, 0x00, 0x04, 0x01, 0x2c, 0x00, 0x76, 0x00, 0x02, 0x00, 0x05, 0x01, 0x2c, - //0x0230: .`.. ..., .v.. ..., - 0x0a, 0x00, 0x00, 0x02, 0x00, 0x00, 0x05, 0x16, 0x14, 0x35, 0x00, 0x03, 0x00, 0x00, 0x05, 0x16, - //0x0240: .... .... .5.. .... - 0x14, 0x28, 0x00, 0x01, 0x00, 0x02, 0x05, 0x16, 0x14, 0x32, 0x00, 0x01, 0x00, 0x03, 0x02, 0x0b, - //0x0250: .(.. .... .2.. .... - 0x0a, 0xc0, 0x00, 0x01, 0x00, 0x00, 0x02, 0x0b, 0x0a, 0xb6, 0x00, 0x02, 0x00, 0x01, 0x08, 0x0b, - //0x0260: .... .... .... .... - 0x0a, 0x00, 0x00, 0x02, 0x00, 0x01, 0x17, 0x00, 0x32, 0x00, 0x00, 0x03, 0x00, 0x00, 0x1c, 0x0b, - //0x0270: .... .... 2... .... - 0x14, 0xfa, 0x00, 0x04, 0x00, 0x00, 0x17, 0x00, 0x32, 0x2b, 0x00, 0x02, 0x00, 0x08, 0x17, 0x0b, - //0x0280: .... .... 2+.. .... - 0x28, 0x82, 0x00, 0x02, 0x00, 0x01, 0x17, 0x16, 0x28, 0x7a, 0x00, 0x02, 0x00, 0x02, 0x17, 0x16, - //0x0290: (... .... (z.. .... - 0x28, 0x69, 0x00, 0x02, 0x00, 0x03, 0x17, 0x16, 0x28, 0x51, 0x00, 0x02, 0x00, 0x04, 0x17, 0x0b, - //0x02a0: (i.. .... (Q.. .... - 0x28, 0x87, 0x00, 0x02, 0x00, 0x05, 0x17, 0x16, 0x28, 0x91, 0x00, 0x02, 0x00, 0x06, 0x04, 0x16, - //0x02b0: (... .... (... .... - 0x1e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x2d, 0x16, 0x1e, 0xc8, 0x00, 0x00, 0x00, 0x14, 0x2d, 0x16, - //0x02c0: .... ..-. .... ..-. - 0x1e, 0x27, 0x00, 0x02, 0x00, 0x00, 0x2d, 0x16, 0x1e, 0x19, 0x00, 0x02, 0x00, 0x00, 0x08, 0x16, - //0x02d0: .'.. ..-. .... .... - 0x28, 0x20, 0x00, 0x02, 0x00, 0x00, 0x07, 0x0b, 0x14, 0x40, 0x00, 0x02, 0x00, 0x00, 0x16, 0x16, - //0x02e0: ( .. .... .@.. .... - 0x14, 0x52, 0x00, 0x02, 0x00, 0x00, 0x1b, 0x0b, 0x1e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x14, 0x00, - //0x02f0: .R.. .... .... .... - 0x1e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x0e, 0x21, 0x28, 0x15, 0x00, 0x01, 0x00, 0x00, 0x1d, 0x0b, - //0x0300: .... ...! (... .... - 0x0a, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x16, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x19, 0x00, - //0x0310: .... .... .... .... - 0x32, 0x04, 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x1e, 0x79, 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, - //0x0320: 2... ..2. .y.. ..2. - 0x1e, 0x00, 0x00, 0x14, 0x00, 0x00, 0x34, 0x16, 0x1e, 0xc0, 0x00, 0x02, 0x00, 0x00, 0x34, 0x16, - //0x0330: .... ..4. .... ..4. - 0x1e, 0xe9, 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x28, 0x68, 0x00, 0x37, 0x00, 0x00, 0x35, 0x21, - //0x0340: .... ..2. (h.7 ..5! - 0x00, 0x63, 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x28, 0x00, 0x00, 0x03, 0x00, 0x00, 0x32, 0x16, - //0x0350: .c.. ..2. (... ..2. - 0x1e, 0xa2, 0x00, 0x02, 0x00, 0x00, 0x34, 0x16, 0x1e, 0x39, 0x00, 0x02, 0x00, 0x00, 0x34, 0x16, - //0x0360: .... ..4. .9.. ..4. - 0x1e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x36, 0x00, 0x00, 0x48, 0x00, 0x03, 0x00, 0x00, 0x37, 0x2c, - //0x0370: .... ..6. .H.. ..7, - 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x0e, 0x16, + 0x00, 0x00, 0xff, 0x00, 0x01, 0x2c, 0x00, 0x14, 0x00, 0x02, 0x00, 0x01, 0x01, 0x37, 0x00, 0x00, + //0x01e0: .... .,.. .... .7.. + 0x00, 0x32, 0x14, 0x00, 0x18, 0x16, 0x00, 0x4a, 0x00, 0x01, 0x00, 0x00, 0x18, 0x21, 0x0a, 0x4b, + //0x01f0: .2.. ...J .... .!.K + 0x00, 0x01, 0x00, 0x01, 0x01, 0x2c, 0x00, 0x1b, 0x00, 0x02, 0x00, 0x02, 0x01, 0x2c, 0x00, 0x60, + //0x0200: .... .,.. .... .,.` + 0x00, 0x03, 0x00, 0x04, 0x01, 0x2c, 0x00, 0x76, 0x00, 0x02, 0x00, 0x05, 0x01, 0x2c, 0x0a, 0x00, + //0x0210: .... .,.v .... .,.. + 0x00, 0x02, 0x00, 0x00, 0x05, 0x16, 0x14, 0x35, 0x00, 0x03, 0x00, 0x00, 0x05, 0x16, 0x14, 0x28, + //0x0220: .... ...5 .... ...( + 0x00, 0x01, 0x00, 0x02, 0x05, 0x16, 0x14, 0x32, 0x00, 0x01, 0x00, 0x03, 0x02, 0x0b, 0x0a, 0xc0, + //0x0230: .... ...2 .... .... + 0x00, 0x01, 0x00, 0x00, 0x02, 0x0b, 0x0a, 0xb6, 0x00, 0x02, 0x00, 0x01, 0x08, 0x0b, 0x0a, 0x00, + //0x0240: .... .... .... .... + 0x00, 0x02, 0x00, 0x01, 0x17, 0x00, 0x32, 0x00, 0x00, 0x03, 0x00, 0x00, 0x1c, 0x0b, 0x14, 0xfa, + //0x0250: .... ..2. .... .... + 0x00, 0x04, 0x00, 0x00, 0x17, 0x00, 0x32, 0x2b, 0x00, 0x02, 0x00, 0x08, 0x17, 0x0b, 0x28, 0x82, + //0x0260: .... ..2+ .... ..(. + 0x00, 0x02, 0x00, 0x01, 0x17, 0x16, 0x28, 0x7a, 0x00, 0x02, 0x00, 0x02, 0x17, 0x16, 0x28, 0x69, + //0x0270: .... ..(z .... ..(i + 0x00, 0x02, 0x00, 0x03, 0x17, 0x16, 0x28, 0x51, 0x00, 0x02, 0x00, 0x04, 0x17, 0x0b, 0x28, 0x87, + //0x0280: .... ..(Q .... ..(. + 0x00, 0x02, 0x00, 0x05, 0x17, 0x16, 0x28, 0x91, 0x00, 0x02, 0x00, 0x06, 0x04, 0x16, 0x1e, 0x00, + //0x0290: .... ..(. .... .... + 0x00, 0x02, 0x00, 0x00, 0x2d, 0x16, 0x1e, 0xc8, 0x00, 0x00, 0x00, 0x14, 0x2d, 0x16, 0x1e, 0x27, + //0x02a0: .... -... .... -..' + 0x00, 0x02, 0x00, 0x00, 0x2d, 0x16, 0x1e, 0x19, 0x00, 0x02, 0x00, 0x00, 0x08, 0x16, 0x28, 0x20, + //0x02b0: .... -... .... ..( + 0x00, 0x02, 0x00, 0x00, 0x07, 0x0b, 0x14, 0x40, 0x00, 0x02, 0x00, 0x00, 0x16, 0x16, 0x14, 0x52, + //0x02c0: .... ...@ .... ...R + 0x00, 0x02, 0x00, 0x00, 0x1b, 0x0b, 0x1e, 0x00, 0x00, 0x02, 0x00, 0x00, 0x14, 0x00, 0x1e, 0x00, + //0x02d0: .... .... .... .... + 0x00, 0x02, 0x00, 0x00, 0x0e, 0x21, 0x28, 0x15, 0x00, 0x01, 0x00, 0x00, 0x1d, 0x0b, 0x0a, 0x00, + //0x02e0: .... .!(. .... .... + 0x00, 0x01, 0x00, 0x00, 0x02, 0x16, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x19, 0x00, 0x32, 0x04, + //0x02f0: .... .... .... ..2. + 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x1e, 0x79, 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x1e, 0x00, + //0x0300: .... 2..y .... 2... + 0x00, 0x14, 0x00, 0x00, 0x34, 0x16, 0x1e, 0xc0, 0x00, 0x02, 0x00, 0x00, 0x34, 0x16, 0x1e, 0xe9, + //0x0310: .... 4... .... 4... + 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x28, 0x68, 0x00, 0x37, 0x00, 0x00, 0x35, 0x21, 0x00, 0x63, + //0x0320: .... 2.(h .7.. 5!.c + 0x00, 0x02, 0x00, 0x00, 0x32, 0x16, 0x28, 0x00, 0x00, 0x03, 0x00, 0x00, 0x32, 0x16, 0x1e, 0xa2, + //0x0330: .... 2.(. .... 2... + 0x00, 0x02, 0x00, 0x00, 0x34, 0x16, 0x1e, 0x39, 0x00, 0x02, 0x00, 0x00, 0x34, 0x16, 0x1e, 0x00, + //0x0340: .... 4..9 .... 4... + 0x00, 0x02, 0x00, 0x00, 0x36, 0x00, 0x00, 0x48, 0x00, 0x03, 0x00, 0x00, 0x37, 0x2c, 0x00, 0x00, + //0x0350: .... 6..H .... 7,.. + 0x00, 0x02, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x0e, 0x16, 0x00, 0x02, + //0x0360: .... .... .... .... + 0x00, 0x02, 0x00, 0x00, 0x0e, 0x16, 0x00, 0x2c, 0x01, 0x01, 0x00, 0x00, 0x0a, 0x16, 0x1e, 0xae, + //0x0370: .... ..., .... .... + 0x00, 0x00, 0x00, 0x00, 0x0c, 0x16, 0x14, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0b, 0x0b, 0x14, 0x00, //0x0380: .... .... .... .... - 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x0e, 0x16, 0x00, 0x2c, 0x01, 0x01, 0x00, 0x00, 0x0a, 0x16, - //0x0390: .... .... .,.. .... - 0x1e, 0xae, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x16, 0x14, 0x00, 0x00, 0x01, 0x00, 0x00, 0x0b, 0x0b, - //0x03a0: .... .... .... .... - 0x14, 0x00, 0x00, 0x32, 0x14, 0x00, 0x0b, 0x0b, 0x1e, 0x00, 0x00, 0x32, 0x14, 0x00, 0x0b, 0x16, - //0x03b0: ...2 .... ...2 .... - 0x14, 0x00, 0x00, 0x32, 0x14, 0x00, 0x0e, 0x21, 0x28, 0x00, 0x00, 0x32, 0x14, 0x00, 0xff, 0x44, - //0x03c0: ...2 ...! (..2 ...D - 0x52, 0x45, 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x56, 0x39, 0x39, 0x00, 0x44, 0x52, 0x45, 0x41, - //0x03d0: REAM WEB. V99. DREA - 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x56, 0x4f, 0x4c, 0x00, 0x00, 0x01, 0x45, 0x58, 0x49, 0x54, 0x20, - //0x03e0: MWEB .VOL ...E XIT - 0x20, 0x20, 0x20, 0x20, 0x20, 0x48, 0x45, 0x4c, 0x50, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4c, - //0x03f0: HEL P L - 0x49, 0x53, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x52, 0x45, 0x41, 0x44, 0x20, 0x20, 0x20, - //0x0400: IST REA D - 0x20, 0x20, 0x20, 0x4c, 0x4f, 0x47, 0x4f, 0x4e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4b, 0x45, 0x59, - //0x0410: L OGON KEY - 0x53, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0x00, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x20, - //0x0420: S . .PUB LIC - 0x20, 0x20, 0x20, 0x20, 0x20, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x20, 0x20, 0x20, 0x20, 0x20, - //0x0430: PUB LIC - 0x00, 0x00, 0x00, 0x42, 0x4c, 0x41, 0x43, 0x4b, 0x44, 0x52, 0x41, 0x47, 0x4f, 0x4e, 0x20, 0x52, - //0x0440: ...B LACK DRAG ON R - 0x59, 0x41, 0x4e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x48, 0x45, 0x4e, - //0x0450: YAN .. .HEN - 0x44, 0x52, 0x49, 0x58, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4c, 0x4f, 0x55, 0x49, 0x53, 0x20, 0x20, - //0x0460: DRIX LOU IS - 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x53, 0x45, 0x50, 0x54, 0x49, 0x4d, 0x55, 0x53, 0x20, - //0x0470: ...S EPTI MUS - 0x20, 0x20, 0x20, 0x42, 0x45, 0x43, 0x4b, 0x45, 0x54, 0x54, 0x20, 0x20, 0x20, 0x20, 0x00, 0xff, - //0x0480: B ECKE TT .. - 0xff, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x22, - //0x0490: . ." - 0x52, 0x4f, 0x4f, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x22, 0x20, 0x20, - //0x04a0: ROOT ." - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x30, 0x30, 0x30, 0x30, 0x00, - //0x04b0: .0 000. - 0x30, 0x30, 0x00, 0x0d, 0x0a, 0x0d, 0x0a, 0x24, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x20, 0x4e, - //0x04c0: 00.. ...$ OBJE CT N - 0x41, 0x4d, 0x45, 0x20, 0x4f, 0x4e, 0x45, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - //0x04d0: AME ONE - 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, - //0x04e0: - 0x00, 0x10, 0x12, 0x12, 0x11, 0x10, 0x10, 0x10, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, - //0x04f0: .... .... .... .... - 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x44, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, - //0x0500: .... .... .D:. .... + 0x00, 0x32, 0x14, 0x00, 0x0b, 0x0b, 0x1e, 0x00, 0x00, 0x32, 0x14, 0x00, 0x0b, 0x16, 0x14, 0x00, + //0x0390: .2.. .... .2.. .... + 0x00, 0x32, 0x14, 0x00, 0x0e, 0x21, 0x28, 0x00, 0x00, 0x32, 0x14, 0x00, 0xff, 0x44, 0x52, 0x45, + //0x03a0: .2.. .!(. .2.. .DRE + 0x41, 0x4d, 0x57, 0x45, 0x42, 0x2e, 0x56, 0x39, 0x39, 0x00, 0x44, 0x52, 0x45, 0x41, 0x4d, 0x57, + //0x03b0: AMWE B.V9 9.DR EAMW + 0x45, 0x42, 0x2e, 0x56, 0x4f, 0x4c, 0x00, 0x00, 0x01, 0x45, 0x58, 0x49, 0x54, 0x20, 0x20, 0x20, + //0x03c0: EB.V OL.. .EXI T + 0x20, 0x20, 0x20, 0x48, 0x45, 0x4c, 0x50, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4c, 0x49, 0x53, + //0x03d0: H ELP LIS + 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x52, 0x45, 0x41, 0x44, 0x20, 0x20, 0x20, 0x20, 0x20, + //0x03e0: T R EAD + 0x20, 0x4c, 0x4f, 0x47, 0x4f, 0x4e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4b, 0x45, 0x59, 0x53, 0x20, + //0x03f0: LOG ON K EYS + 0x20, 0x20, 0x20, 0x20, 0x20, 0x01, 0x00, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x20, 0x20, 0x20, + //0x0400: ..P UBLI C + 0x20, 0x20, 0x20, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, + //0x0410: P UBLI C .. + 0x00, 0x42, 0x4c, 0x41, 0x43, 0x4b, 0x44, 0x52, 0x41, 0x47, 0x4f, 0x4e, 0x20, 0x52, 0x59, 0x41, + //0x0420: .BLA CKDR AGON RYA + 0x4e, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x48, 0x45, 0x4e, 0x44, 0x52, + //0x0430: N ...H ENDR + 0x49, 0x58, 0x20, 0x20, 0x20, 0x20, 0x20, 0x4c, 0x4f, 0x55, 0x49, 0x53, 0x20, 0x20, 0x20, 0x20, + //0x0440: IX L OUIS + 0x20, 0x20, 0x00, 0x00, 0x00, 0x53, 0x45, 0x50, 0x54, 0x49, 0x4d, 0x55, 0x53, 0x20, 0x20, 0x20, + //0x0450: .. .SEP TIMU S + 0x20, 0x42, 0x45, 0x43, 0x4b, 0x45, 0x54, 0x54, 0x20, 0x20, 0x20, 0x20, 0x00, 0xff, 0xff, 0x20, + //0x0460: BEC KETT ... + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x22, 0x52, 0x4f, + //0x0470: ."RO + 0x4f, 0x54, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x22, 0x20, 0x20, 0x20, 0x20, + //0x0480: OT ." + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x30, 0x30, 0x30, 0x30, 0x00, 0x30, 0x30, + //0x0490: .000 0.00 + 0x00, 0x0d, 0x0a, 0x0d, 0x0a, 0x24, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x20, 0x4e, 0x41, 0x4d, + //0x04a0: .... .$OB JECT NAM + 0x45, 0x20, 0x4f, 0x4e, 0x45, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, + //0x04b0: E ON E + 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x10, + //0x04c0: .. + 0x12, 0x12, 0x11, 0x10, 0x10, 0x10, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, + //0x04d0: .... .... .... .... + 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x44, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + //0x04e0: .... ...D :... .... 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + //0x04f0: .... .... .... .... + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, + //0x0500: .... .... .... .... + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x03, 0x02, 0x04, 0x01, 0x0a, 0x09, 0x08, //0x0510: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x06, 0x0b, 0x04, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0520: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x03, 0x02, 0x04, 0x01, 0x0a, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0530: .... .... .... .... - 0x09, 0x08, 0x06, 0x0b, 0x04, 0x07, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0540: .... .... .... .... 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0550: .... .... .... .... @@ -6038,13 +6038,9 @@ void DreamGenContext::__start() { //0x0580: .... .... .... .... 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, //0x0590: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, //0x05a0: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - //0x05b0: .... .... .... .... - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, - //0x05c0: .... .... .... .... - 0xff, 0x00, 0x00, 0x00, }; + 0x00, 0x00, }; ds.assign(src, src + sizeof(src)); dreamweb(); } diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index c6e1e2e51e..f537db7958 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -32,14 +32,14 @@ namespace DreamGen { -static const uint16 offset_commandline = 0x04c8; -static const uint16 offset_openchangesize = 0x03e9; -static const uint16 offset_operand1 = 0x0491; -static const uint16 offset_money2poke = 0x04c0; -static const uint16 offset_keys = 0x0427; -static const uint16 offset_rootdir = 0x049f; -static const uint16 offset_money1poke = 0x04bb; -static const uint16 offset_comlist = 0x03eb; +static const uint16 offset_money1poke = 0x0499; +static const uint16 offset_openchangesize = 0x03c7; +static const uint16 offset_comlist = 0x03c9; +static const uint16 offset_money2poke = 0x049e; +static const uint16 offset_commandline = 0x04a6; +static const uint16 offset_rootdir = 0x047d; +static const uint16 offset_keys = 0x0405; +static const uint16 offset_operand1 = 0x046f; static const uint16 kStartvars = 0; static const uint16 kProgresspoints = 1; static const uint16 kWatchon = 2; @@ -302,125 +302,103 @@ static const uint16 kAddtogreen = 336; static const uint16 kAddtored = 337; static const uint16 kAddtoblue = 338; static const uint16 kLastsoundreel = 339; -static const uint16 kSoundbuffer = 341; -static const uint16 kSoundbufferad = 343; -static const uint16 kSoundbufferpage = 345; -static const uint16 kSoundtimes = 346; -static const uint16 kNeedsoundbuff = 347; -static const uint16 kOldint9seg = 348; -static const uint16 kOldint9add = 350; -static const uint16 kOldint8seg = 352; -static const uint16 kOldint8add = 354; -static const uint16 kOldsoundintseg = 356; -static const uint16 kOldsoundintadd = 358; -static const uint16 kSoundbaseadd = 360; -static const uint16 kDsp_status = 362; -static const uint16 kDsp_write = 364; -static const uint16 kDmaaddress = 366; -static const uint16 kSoundint = 367; -static const uint16 kSounddmachannel = 368; -static const uint16 kSampleplaying = 369; -static const uint16 kTestresult = 370; -static const uint16 kCurrentirq = 371; -static const uint16 kSpeechloaded = 372; -static const uint16 kSpeechlength = 373; -static const uint16 kVolume = 375; -static const uint16 kVolumeto = 376; -static const uint16 kVolumedirection = 377; -static const uint16 kVolumecount = 378; -static const uint16 kPlayblock = 379; -static const uint16 kWongame = 380; -static const uint16 kLasthardkey = 381; -static const uint16 kBufferin = 382; -static const uint16 kBufferout = 384; -static const uint16 kExtras = 386; -static const uint16 kWorkspace = 388; -static const uint16 kMapstore = 390; -static const uint16 kCharset1 = 392; -static const uint16 kBuffers = 394; -static const uint16 kMainsprites = 396; -static const uint16 kBackdrop = 398; -static const uint16 kMapdata = 400; -static const uint16 kSounddata = 402; -static const uint16 kSounddata2 = 404; -static const uint16 kRecordspace = 406; -static const uint16 kFreedat = 408; -static const uint16 kSetdat = 410; -static const uint16 kReel1 = 412; -static const uint16 kReel2 = 414; -static const uint16 kReel3 = 416; -static const uint16 kRoomdesc = 418; -static const uint16 kFreedesc = 420; -static const uint16 kSetdesc = 422; -static const uint16 kBlockdesc = 424; -static const uint16 kSetframes = 426; -static const uint16 kFreeframes = 428; -static const uint16 kPeople = 430; -static const uint16 kReels = 432; -static const uint16 kCommandtext = 434; -static const uint16 kPuzzletext = 436; -static const uint16 kTraveltext = 438; -static const uint16 kTempgraphics = 440; -static const uint16 kTempgraphics2 = 442; -static const uint16 kTempgraphics3 = 444; -static const uint16 kTempsprites = 446; -static const uint16 kTextfile1 = 448; -static const uint16 kTextfile2 = 450; -static const uint16 kTextfile3 = 452; -static const uint16 kBlinkframe = 454; -static const uint16 kBlinkcount = 455; -static const uint16 kReasseschanges = 456; -static const uint16 kPointerspath = 457; -static const uint16 kManspath = 458; -static const uint16 kPointerfirstpath = 459; -static const uint16 kFinaldest = 460; -static const uint16 kDestination = 461; -static const uint16 kLinestartx = 462; -static const uint16 kLinestarty = 464; -static const uint16 kLineendx = 466; -static const uint16 kLineendy = 468; -static const uint16 kIncrement1 = 470; -static const uint16 kIncrement2 = 472; -static const uint16 kLineroutine = 474; -static const uint16 kLinepointer = 475; -static const uint16 kLinedirection = 476; -static const uint16 kLinelength = 477; -static const uint16 kLiftsoundcount = 478; -static const uint16 kEmmhandle = 479; -static const uint16 kEmmpageframe = 481; -static const uint16 kEmmhardwarepage = 483; -static const uint16 kCh0emmpage = 484; -static const uint16 kCh0offset = 486; -static const uint16 kCh0blockstocopy = 488; -static const uint16 kCh0playing = 490; -static const uint16 kCh0repeat = 491; -static const uint16 kCh0oldemmpage = 492; -static const uint16 kCh0oldoffset = 494; -static const uint16 kCh0oldblockstocopy = 496; -static const uint16 kCh1playing = 498; -static const uint16 kCh1emmpage = 499; -static const uint16 kCh1offset = 501; -static const uint16 kCh1blockstocopy = 503; -static const uint16 kCh1blocksplayed = 505; -static const uint16 kSoundbufferwrite = 507; -static const uint16 kSoundemmpage = 509; -static const uint16 kSpeechemmpage = 511; -static const uint16 kCurrentsample = 513; -static const uint16 kRoomssample = 514; -static const uint16 kGameerror = 515; -static const uint16 kHowmuchalloc = 516; -static const uint16 kReelroutines = 518; -static const uint16 kBasicsample = 975; -static const uint16 kVolumetabname = 988; -static const uint16 kCurrentfile = 1197; -static const uint16 kRoomscango = 1321; -static const uint16 kRoompics = 1337; -static const uint16 kOplist = 1352; -static const uint16 kInputline = 1355; -static const uint16 kPresslist = 1483; -static const uint16 kQuitrequested = 1489; -static const uint16 kSubtitles = 1490; -static const uint16 kForeignrelease = 1491; +static const uint16 kSpeechloaded = 341; +static const uint16 kSpeechlength = 342; +static const uint16 kVolume = 344; +static const uint16 kVolumeto = 345; +static const uint16 kVolumedirection = 346; +static const uint16 kVolumecount = 347; +static const uint16 kPlayblock = 348; +static const uint16 kWongame = 349; +static const uint16 kLasthardkey = 350; +static const uint16 kBufferin = 351; +static const uint16 kBufferout = 353; +static const uint16 kExtras = 355; +static const uint16 kWorkspace = 357; +static const uint16 kMapstore = 359; +static const uint16 kCharset1 = 361; +static const uint16 kBuffers = 363; +static const uint16 kMainsprites = 365; +static const uint16 kBackdrop = 367; +static const uint16 kMapdata = 369; +static const uint16 kSounddata = 371; +static const uint16 kSounddata2 = 373; +static const uint16 kRecordspace = 375; +static const uint16 kFreedat = 377; +static const uint16 kSetdat = 379; +static const uint16 kReel1 = 381; +static const uint16 kReel2 = 383; +static const uint16 kReel3 = 385; +static const uint16 kRoomdesc = 387; +static const uint16 kFreedesc = 389; +static const uint16 kSetdesc = 391; +static const uint16 kBlockdesc = 393; +static const uint16 kSetframes = 395; +static const uint16 kFreeframes = 397; +static const uint16 kPeople = 399; +static const uint16 kReels = 401; +static const uint16 kCommandtext = 403; +static const uint16 kPuzzletext = 405; +static const uint16 kTraveltext = 407; +static const uint16 kTempgraphics = 409; +static const uint16 kTempgraphics2 = 411; +static const uint16 kTempgraphics3 = 413; +static const uint16 kTempsprites = 415; +static const uint16 kTextfile1 = 417; +static const uint16 kTextfile2 = 419; +static const uint16 kTextfile3 = 421; +static const uint16 kBlinkframe = 423; +static const uint16 kBlinkcount = 424; +static const uint16 kReasseschanges = 425; +static const uint16 kPointerspath = 426; +static const uint16 kManspath = 427; +static const uint16 kPointerfirstpath = 428; +static const uint16 kFinaldest = 429; +static const uint16 kDestination = 430; +static const uint16 kLinestartx = 431; +static const uint16 kLinestarty = 433; +static const uint16 kLineendx = 435; +static const uint16 kLineendy = 437; +static const uint16 kIncrement1 = 439; +static const uint16 kIncrement2 = 441; +static const uint16 kLineroutine = 443; +static const uint16 kLinepointer = 444; +static const uint16 kLinedirection = 445; +static const uint16 kLinelength = 446; +static const uint16 kLiftsoundcount = 447; +static const uint16 kEmmhandle = 448; +static const uint16 kEmmpageframe = 450; +static const uint16 kEmmhardwarepage = 452; +static const uint16 kCh0emmpage = 453; +static const uint16 kCh0offset = 455; +static const uint16 kCh0blockstocopy = 457; +static const uint16 kCh0playing = 459; +static const uint16 kCh0repeat = 460; +static const uint16 kCh0oldemmpage = 461; +static const uint16 kCh0oldoffset = 463; +static const uint16 kCh0oldblockstocopy = 465; +static const uint16 kCh1playing = 467; +static const uint16 kCh1emmpage = 468; +static const uint16 kCh1offset = 470; +static const uint16 kCh1blockstocopy = 472; +static const uint16 kCh1blocksplayed = 474; +static const uint16 kSoundbufferwrite = 476; +static const uint16 kSoundemmpage = 478; +static const uint16 kSpeechemmpage = 480; +static const uint16 kCurrentsample = 482; +static const uint16 kRoomssample = 483; +static const uint16 kReelroutines = 484; +static const uint16 kBasicsample = 941; +static const uint16 kVolumetabname = 954; +static const uint16 kCurrentfile = 1163; +static const uint16 kRoomscango = 1287; +static const uint16 kRoompics = 1303; +static const uint16 kOplist = 1318; +static const uint16 kInputline = 1321; +static const uint16 kPresslist = 1449; +static const uint16 kQuitrequested = 1455; +static const uint16 kSubtitles = 1456; +static const uint16 kForeignrelease = 1457; static const uint16 kBlocktextdat = (0); static const uint16 kPersonframes = (0); static const uint16 kDebuglevel1 = (0); @@ -459,8 +437,8 @@ static const uint16 kListofchanges = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768 static const uint16 kUndertimedtext = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)); static const uint16 kRainlist = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)); static const uint16 kInitialreelrouts = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)); -static const uint16 kInitialvars = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+975-518); -static const uint16 kLengthofbuffer = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+975-518+68-0); +static const uint16 kInitialvars = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+941-484); +static const uint16 kLengthofbuffer = (0+(228*13)+32+60+(32*32)+(11*10*3)+768+768+768+(32*32)+(128*5)+(80*5)+(100*5)+(12*5)+(46*40)+(5*80)+(250*4)+(256*30)+(6*64)+941-484+68-0); static const uint16 kReellist = (0+(36*144)); static const uint16 kIntext = (0+(38*2)); static const uint16 kLengthofmap = (0+(66*60)); @@ -511,8 +489,8 @@ static const uint16 kKeypady = (72); static const uint16 kZoomx = (8); static const uint16 kInventx = (80); static const uint16 kMenux = (80+40); +static const uint16 kLenofreelrouts = (941-484); static const uint16 kHeaderlen = (96); -static const uint16 kLenofreelrouts = (975-518); class DreamGenContext : public DreamBase, public Context { diff --git a/engines/dreamweb/sound.cpp b/engines/dreamweb/sound.cpp index d27af52fbe..f1837f313a 100644 --- a/engines/dreamweb/sound.cpp +++ b/engines/dreamweb/sound.cpp @@ -53,9 +53,6 @@ void DreamBase::volumeAdjust() { } void DreamBase::playChannel0(uint8 index, uint8 repeat) { - if (data.byte(kSoundint) == 255) - return; - data.byte(kCh0playing) = index; Sound *soundBank; if (index >= 12) { @@ -80,8 +77,6 @@ void DreamGenContext::playChannel0() { } void DreamBase::playChannel1(uint8 index) { - if (data.byte(kSoundint) == 255) - return; if (data.byte(kCh1playing) == 7) return; diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 7a60f17c1f..409b235133 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -802,11 +802,7 @@ void DreamGenContext::hangOnCurs(uint16 frameCount) { } void DreamGenContext::seeCommandTail() { - data.word(kSoundbaseadd) = 0x220; - data.byte(kSoundint) = 5; - data.byte(kSounddmachannel) = 1; data.byte(kBrightness) = 1; - data.word(kHowmuchalloc) = 0x9360; } void DreamGenContext::randomNumber() { @@ -2175,8 +2171,6 @@ void DreamGenContext::readSetData() { data.word(kPuzzletext) = standardLoad("DREAMWEB.T80"); data.word(kCommandtext) = standardLoad("DREAMWEB.T84"); useCharset1(); - if (data.byte(kSoundint) == 0xff) - return; //engine->openFile("DREAMWEB.VOL"); //uint8 *volumeTab = getSegment(data.word(kSoundbuffer)).ptr(16384, 0); |