DREAMWEB: 'showseconduse' ported to C++

This commit is contained in:
Bertrand Augereau 2011-11-26 17:29:43 +01:00
parent 86c9fdae4b
commit aa20b8cf42
5 changed files with 14 additions and 15 deletions

View file

@ -287,6 +287,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'disablepath', 'disablepath',
'getbackfromob', 'getbackfromob',
'showfirstuse', 'showfirstuse',
'showseconduse',
], skip_output = [ ], skip_output = [
# These functions are processed but not output # These functions are processed but not output
'dreamweb', 'dreamweb',

View file

@ -7782,17 +7782,6 @@ cigarette:
data.byte(kGetback) = 1; data.byte(kGetback) = 1;
} }
void DreamGenContext::showseconduse() {
STACK_CHECK;
getobtextstart();
nextcolon();
nextcolon();
nextcolon();
usetext();
cx = 400;
hangonp();
}
void DreamGenContext::usecardreader1() { void DreamGenContext::usecardreader1() {
STACK_CHECK; STACK_CHECK;
_cmp(data.byte(kWithobject), 255); _cmp(data.byte(kWithobject), 255);

View file

@ -264,7 +264,6 @@ public:
static const uint16 addr_usecardreader3 = 0xc66c; static const uint16 addr_usecardreader3 = 0xc66c;
static const uint16 addr_usecardreader2 = 0xc668; static const uint16 addr_usecardreader2 = 0xc668;
static const uint16 addr_usecardreader1 = 0xc664; static const uint16 addr_usecardreader1 = 0xc664;
static const uint16 addr_showseconduse = 0xc660;
static const uint16 addr_uselighter = 0xc65c; static const uint16 addr_uselighter = 0xc65c;
static const uint16 addr_usepoolreader = 0xc658; static const uint16 addr_usepoolreader = 0xc658;
static const uint16 addr_calledensdlift = 0xc654; static const uint16 addr_calledensdlift = 0xc654;
@ -1437,6 +1436,7 @@ public:
void adjustright(); void adjustright();
void putunderzoom(); void putunderzoom();
void vsync(); void vsync();
//void showseconduse();
//void finishedwalking(); //void finishedwalking();
void findinvpos(); void findinvpos();
void dumpmenu(); void dumpmenu();
@ -1547,7 +1547,6 @@ public:
//void getyad(); //void getyad();
//void reconstruct(); //void reconstruct();
void soldier1(); void soldier1();
//void animpointer();
void getundercentre(); void getundercentre();
void checkforexit(); void checkforexit();
void loadseg(); void loadseg();
@ -1583,7 +1582,7 @@ public:
void getback1(); void getback1();
void setlocation(); void setlocation();
void fadefromwhite(); void fadefromwhite();
void checksoundint(); //void animpointer();
void usewindow(); void usewindow();
void wearshades(); void wearshades();
//void onedigit(); //void onedigit();
@ -1851,7 +1850,7 @@ public:
//void showryanpage(); //void showryanpage();
//void printlogo(); //void printlogo();
void allpointer(); void allpointer();
void showseconduse(); void checksoundint();
void clearreels(); void clearreels();
void malefan(); void malefan();
void dosaveload(); void dosaveload();

View file

@ -341,4 +341,5 @@
void usecharset1(); void usecharset1();
void getbackfromob(); void getbackfromob();
void showfirstuse(); void showfirstuse();
void showseconduse();

View file

@ -185,5 +185,14 @@ void DreamGenContext::showfirstuse() {
hangonp(400); hangonp(400);
} }
void DreamGenContext::showseconduse() {
uint8 *obText = getobtextstartCPP();
findnextcolon(&obText);
findnextcolon(&obText);
findnextcolon(&obText);
usetext(obText);
hangonp(400);
}
} /*namespace dreamgen */ } /*namespace dreamgen */