DREAMWEB: 'printlogo' ported to C++

This commit is contained in:
Bertrand Augereau 2011-11-18 06:52:34 +01:00
parent 37052c1762
commit 8a7705394e
5 changed files with 8 additions and 14 deletions

View File

@ -243,6 +243,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'hangoncurs',
'fadeupyellows',
'loadroomssample',
'printlogo',
], skip_output = [
# These functions are processed but not output
'dreamweb',

View File

@ -7165,17 +7165,6 @@ notnewlogo:
printlogo();
}
void DreamGenContext::printlogo() {
STACK_CHECK;
di = 56;
bx = 32;
ds = data.word(kTempgraphics);
al = 0;
ah = 0;
showframe();
showcurrentfile();
}
void DreamGenContext::showcurrentfile() {
STACK_CHECK;
di = 178;
@ -15612,7 +15601,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_parser: parser(); break;
case addr_scrollmonitor: scrollmonitor(); break;
case addr_monitorlogo: monitorlogo(); break;
case addr_printlogo: printlogo(); break;
case addr_showcurrentfile: showcurrentfile(); break;
case addr_monmessage: monmessage(); break;
case addr_processtrigger: processtrigger(); break;

View File

@ -345,7 +345,6 @@ public:
static const uint16 addr_processtrigger = 0xc570;
static const uint16 addr_monmessage = 0xc56c;
static const uint16 addr_showcurrentfile = 0xc568;
static const uint16 addr_printlogo = 0xc564;
static const uint16 addr_monitorlogo = 0xc560;
static const uint16 addr_scrollmonitor = 0xc558;
static const uint16 addr_parser = 0xc554;
@ -1893,7 +1892,7 @@ public:
void zoomonoff();
void updatesymboltop();
//void showryanpage();
void printlogo();
//void printlogo();
void allpointer();
void showseconduse();
void clearreels();

View File

@ -2162,5 +2162,10 @@ void DreamGenContext::readsetdata() {
engine->closeFile();
}
void DreamGenContext::printlogo() {
showframe((Frame *)segRef(data.word(kTempgraphics)).ptr(0, 0), 56, 32, 0, 0);
showcurrentfile();
}
} /*namespace dreamgen */

View File

@ -293,4 +293,5 @@
void readsetdata();
void loadroomssample();
void fadeupyellows();
void printlogo();