Skip to content

Commit

Permalink
DREAMWEB: 'showfirstuse' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Nov 26, 2011
1 parent ce47764 commit 86c9fda
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -286,6 +286,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'usetempcharset',
'disablepath',
'getbackfromob',
'showfirstuse',
], skip_output = [
# These functions are processed but not output
'dreamweb',
Expand Down
10 changes: 0 additions & 10 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -8287,16 +8287,6 @@ void DreamGenContext::useelevator1() {
data.byte(kGetback) = 1;
}

void DreamGenContext::showfirstuse() {
STACK_CHECK;
getobtextstart();
findnextcolon();
findnextcolon();
usetext();
cx = 400;
hangonp();
}

void DreamGenContext::useelevator3() {
STACK_CHECK;
showfirstuse();
Expand Down
5 changes: 2 additions & 3 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -253,7 +253,6 @@ class DreamGenContext : public Context {
static const uint16 addr_useelevator2 = 0xc69c;
static const uint16 addr_useelevator4 = 0xc698;
static const uint16 addr_useelevator3 = 0xc694;
static const uint16 addr_showfirstuse = 0xc690;
static const uint16 addr_useelevator1 = 0xc68c;
static const uint16 addr_usehandle = 0xc688;
static const uint16 addr_usewire = 0xc684;
Expand Down Expand Up @@ -1168,7 +1167,6 @@ class DreamGenContext : public Context {
void clearbuffers();
//void neterror();
void storeit();
//void lockeddoorway();
//void isitworn();
//void putundertimed();
//void dumpmap();
Expand Down Expand Up @@ -1520,6 +1518,7 @@ class DreamGenContext : public Context {
void random();
void mainman();
void mansatstill();
//void showfirstuse();
void channel1only();
//void checkbasemem();
void lastfolder();
Expand Down Expand Up @@ -1839,7 +1838,7 @@ class DreamGenContext : public Context {
void usewinch();
void setbotright();
//void readmouse3();
void showfirstuse();
//void lockeddoorway();
void setupemm();
void aide();
//void getmapad();
Expand Down
1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -340,4 +340,5 @@
void usetempcharset();
void usecharset1();
void getbackfromob();
void showfirstuse();

8 changes: 8 additions & 0 deletions engines/dreamweb/use.cpp
Expand Up @@ -177,5 +177,13 @@ void DreamGenContext::usetext(const uint8 *string) {
worktoscreenm();
}

void DreamGenContext::showfirstuse() {
uint8 *obText = getobtextstartCPP();
findnextcolon(&obText);
findnextcolon(&obText);
usetext(obText);
hangonp(400);
}

} /*namespace dreamgen */

0 comments on commit 86c9fda

Please sign in to comment.