Skip to content

Commit

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

void DreamGenContext::showseconduse() {
STACK_CHECK;
getobtextstart();
nextcolon();
nextcolon();
nextcolon();
usetext();
cx = 400;
hangonp();
}

void DreamGenContext::usecardreader1() {
STACK_CHECK;
_cmp(data.byte(kWithobject), 255);
Expand Down
7 changes: 3 additions & 4 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -264,7 +264,6 @@ class DreamGenContext : public Context {
static const uint16 addr_usecardreader3 = 0xc66c;
static const uint16 addr_usecardreader2 = 0xc668;
static const uint16 addr_usecardreader1 = 0xc664;
static const uint16 addr_showseconduse = 0xc660;
static const uint16 addr_uselighter = 0xc65c;
static const uint16 addr_usepoolreader = 0xc658;
static const uint16 addr_calledensdlift = 0xc654;
Expand Down Expand Up @@ -1437,6 +1436,7 @@ class DreamGenContext : public Context {
void adjustright();
void putunderzoom();
void vsync();
//void showseconduse();
//void finishedwalking();
void findinvpos();
void dumpmenu();
Expand Down Expand Up @@ -1547,7 +1547,6 @@ class DreamGenContext : public Context {
//void getyad();
//void reconstruct();
void soldier1();
//void animpointer();
void getundercentre();
void checkforexit();
void loadseg();
Expand Down Expand Up @@ -1583,7 +1582,7 @@ class DreamGenContext : public Context {
void getback1();
void setlocation();
void fadefromwhite();
void checksoundint();
//void animpointer();
void usewindow();
void wearshades();
//void onedigit();
Expand Down Expand Up @@ -1851,7 +1850,7 @@ class DreamGenContext : public Context {
//void showryanpage();
//void printlogo();
void allpointer();
void showseconduse();
void checksoundint();
void clearreels();
void malefan();
void dosaveload();
Expand Down
1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -341,4 +341,5 @@
void usecharset1();
void getbackfromob();
void showfirstuse();
void showseconduse();

9 changes: 9 additions & 0 deletions engines/dreamweb/use.cpp
Expand Up @@ -185,5 +185,14 @@ void DreamGenContext::showfirstuse() {
hangonp(400);
}

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

} /*namespace dreamgen */

0 comments on commit aa20b8c

Please sign in to comment.