diff options
-rwxr-xr-x | devtools/tasmrecover/tasm-recover | 1 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 26 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.h | 6 | ||||
-rw-r--r-- | engines/dreamweb/saveload.cpp | 27 | ||||
-rw-r--r-- | engines/dreamweb/stubs.h | 2 |
5 files changed, 32 insertions, 30 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover index 22df4f19d6..9a533c823b 100755 --- a/devtools/tasmrecover/tasm-recover +++ b/devtools/tasmrecover/tasm-recover @@ -368,6 +368,7 @@ generator = cpp(context, "DreamGen", blacklist = [ 'entercode', 'scanfornames', 'checkforemm', + 'loadold', ], skip_output = [ # These functions are processed but not output 'dreamweb', diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 00d6b94202..6ade575c32 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -10278,32 +10278,6 @@ alreadynewgame: data.byte(kGetback) = 3; } -void DreamGenContext::loadOld() { - STACK_CHECK; - _cmp(data.byte(kCommandtype), 252); - if (flags.z()) - goto alreadyloadold; - data.byte(kCommandtype) = 252; - al = 48; - commandOnly(); -alreadyloadold: - ax = data.word(kMousebutton); - _and(ax, 1); - if (flags.z()) - return /* (noloadold) */; - ax = 0x0ffff; - doLoad(); - _cmp(data.byte(kGetback), 4); - if (flags.z()) - return /* (noloadold) */; - _cmp(data.byte(kQuitrequested), 0); - if (!flags.z()) - return /* (noloadold) */; - showDecisions(); - workToScreenM(); - data.byte(kGetback) = 0; -} - void DreamGenContext::createName() { STACK_CHECK; push(ax); diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h index 2fd2b00370..b0cb21f231 100644 --- a/engines/dreamweb/dreamgen.h +++ b/engines/dreamweb/dreamgen.h @@ -707,7 +707,7 @@ public: void sLabDoorE(); void sLabDoorD(); void adjustUp(); - void sLabDoorF(); + void fadeScreenDownHalf(); void loadIntroRoom(); void mouseCall(); void train(); @@ -715,6 +715,7 @@ public: void loadCart(); void bartender(); void showDiary(); + void sLabDoorF(); void outOfOpen(); void dirCom(); void dumpKeypad(); @@ -722,7 +723,6 @@ public: void endGameSeq(); void setBotLeft(); void findFirstPath(); - void loadOld(); void useSLab(); void useAltar(); void manAsleep2(); @@ -746,7 +746,6 @@ public: void disableSoundInt(); void priestText(); void openPoolBoss(); - void fadeScreenDownHalf(); void usePlate(); void lookInInterface(); void manAsleep(); @@ -921,7 +920,6 @@ public: void showOpBox(); void clearBeforeLoad(); void bibleQuote(); - void doLoad(); void showExit(); void useTrainer(); void dumpCurrent(); diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp index 6af4071248..ccf70aae6e 100644 --- a/engines/dreamweb/saveload.cpp +++ b/engines/dreamweb/saveload.cpp @@ -416,5 +416,32 @@ unsigned int DreamGenContext::scanForNames() { return count; } +void DreamGenContext::loadOld() { + STACK_CHECK; + _cmp(data.byte(kCommandtype), 252); + if (flags.z()) + goto alreadyloadold; + data.byte(kCommandtype) = 252; + al = 48; + commandOnly(); +alreadyloadold: + ax = data.word(kMousebutton); + _and(ax, 1); + if (flags.z()) + return /* (noloadold) */; + ax = 0x0ffff; + doLoad(); + _cmp(data.byte(kGetback), 4); + if (flags.z()) + return /* (noloadold) */; + _cmp(data.byte(kQuitrequested), 0); + if (!flags.z()) + return /* (noloadold) */; + showDecisions(); + workToScreenM(); + data.byte(kGetback) = 0; +} + + } /*namespace dreamgen */ diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 36b499ae7c..3bbe0dd02c 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -406,4 +406,6 @@ void enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3); void enterCode(); unsigned int scanForNames(); + void doLoad(); + void loadOld(); |