aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdevtools/tasmrecover/tasm-recover1
-rw-r--r--engines/dreamweb/dreamgen.cpp50
-rw-r--r--engines/dreamweb/dreamgen.h5
-rw-r--r--engines/dreamweb/saveload.cpp50
-rw-r--r--engines/dreamweb/stubs.h1
5 files changed, 54 insertions, 53 deletions
diff --git a/devtools/tasmrecover/tasm-recover b/devtools/tasmrecover/tasm-recover
index d3cb582d9e..d399fe4d36 100755
--- a/devtools/tasmrecover/tasm-recover
+++ b/devtools/tasmrecover/tasm-recover
@@ -364,6 +364,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'isitright',
'addtopresslist',
'entercode',
+ 'scanfornames',
], skip_output = [
# These functions are processed but not output
'dreamweb',
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp
index 8ade7511d4..1c5e98b607 100644
--- a/engines/dreamweb/dreamgen.cpp
+++ b/engines/dreamweb/dreamgen.cpp
@@ -10217,56 +10217,6 @@ afterprintname:
goto shownameloop;
}
-void DreamGenContext::scanForNames() {
- STACK_CHECK;
- dx = data;
- es = dx;
- di = 8579;
- dx = data;
- ds = dx;
- dx = 8698;
- cx = 7;
-scanloop:
- push(es);
- push(ds);
- push(di);
- push(dx);
- push(cx);
- openFileFromC();
- if (flags.c())
- goto notexist;
- cx = pop();
- _inc(ch);
- push(cx);
- push(di);
- push(es);
- dx = data;
- ds = dx;
- dx = 6091;
- cx = (6187-6091);
- saveFileRead();
- dx = data;
- es = dx;
- di = 6141;
- ds = pop();
- dx = pop();
- loadSeg();
- bx = data.word(kHandle);
- closeFile();
-notexist:
- cx = pop();
- dx = pop();
- di = pop();
- ds = pop();
- es = pop();
- _add(dx, 13);
- _add(di, 17);
- _dec(cl);
- if (!flags.z())
- goto scanloop;
- al = ch;
-}
-
void DreamGenContext::decide() {
STACK_CHECK;
setMode();
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index aaff3fe297..06835c4737 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -881,7 +881,7 @@ public:
void useWindow();
void wearShades();
void delEverything();
- void fadeScreenDown();
+ void clearReels();
void poolGuard();
void openInv();
void lookAtPlace();
@@ -1032,7 +1032,7 @@ public:
void updateSymbolTop();
void allPointer();
void checkSoundInt();
- void clearReels();
+ void fadeScreenDown();
void maleFan();
void doSaveLoad();
void createName();
@@ -1045,7 +1045,6 @@ public:
void fadeScreenDowns();
void openHotelDoor2();
void getRidOfTempsP();
- void scanForNames();
void selectLocation();
void underTextLine();
void sitDownInBar();
diff --git a/engines/dreamweb/saveload.cpp b/engines/dreamweb/saveload.cpp
index 5cff4533d6..b74fd68d0c 100644
--- a/engines/dreamweb/saveload.cpp
+++ b/engines/dreamweb/saveload.cpp
@@ -368,5 +368,55 @@ void DreamGenContext::loadPosition(unsigned int slot) {
closeFile();
}
+void DreamGenContext::scanForNames() {
+ STACK_CHECK;
+ dx = data;
+ es = dx;
+ di = 8579;
+ dx = data;
+ ds = dx;
+ dx = 8698;
+ cx = 7;
+scanloop:
+ push(es);
+ push(ds);
+ push(di);
+ push(dx);
+ push(cx);
+ openFileFromC();
+ if (flags.c())
+ goto notexist;
+ cx = pop();
+ _inc(ch);
+ push(cx);
+ push(di);
+ push(es);
+ dx = data;
+ ds = dx;
+ dx = 6091;
+ cx = (6187-6091);
+ saveFileRead();
+ dx = data;
+ es = dx;
+ di = 6141;
+ ds = pop();
+ dx = pop();
+ loadSeg();
+ bx = data.word(kHandle);
+ closeFile();
+notexist:
+ cx = pop();
+ dx = pop();
+ di = pop();
+ ds = pop();
+ es = pop();
+ _add(dx, 13);
+ _add(di, 17);
+ _dec(cl);
+ if (!flags.z())
+ goto scanloop;
+ al = ch;
+}
+
} /*namespace dreamgen */
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index 3059bc820d..ea990d69a7 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -403,4 +403,5 @@
bool isItRight(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
void enterCode(uint8 digit0, uint8 digit1, uint8 digit2, uint8 digit3);
void enterCode();
+ void scanForNames();