DREAMWEB: 'usetempcharset' and 'usecharset1' ported to C++

This commit is contained in:
Bertrand Augereau 2011-11-26 16:37:11 +01:00
parent 61a1b49a2d
commit 842184d5c5
5 changed files with 15 additions and 16 deletions

View File

@ -281,6 +281,8 @@ generator = cpp(context, "DreamGen", blacklist = [
'onedigit',
'showword',
'convnum',
'usecharset1',
'usetempcharset',
], skip_output = [
# These functions are processed but not output
'dreamweb',

View File

@ -12775,18 +12775,6 @@ void DreamGenContext::showman() {
showframe();
}
void DreamGenContext::usecharset1() {
STACK_CHECK;
ax = data.word(kCharset1);
data.word(kCurrentset) = ax;
}
void DreamGenContext::usetempcharset() {
STACK_CHECK;
ax = data.word(kTempcharset);
data.word(kCurrentset) = ax;
}
void DreamGenContext::showexit() {
STACK_CHECK;
ds = data.word(kIcons1);

View File

@ -79,8 +79,6 @@ public:
static const uint16 addr_gettime = 0xca8c;
static const uint16 addr_panelicons1 = 0xca84;
static const uint16 addr_showexit = 0xca80;
static const uint16 addr_usetempcharset = 0xca7c;
static const uint16 addr_usecharset1 = 0xca78;
static const uint16 addr_showman = 0xca6c;
static const uint16 addr_middlepanel = 0xca68;
static const uint16 addr_workoutframes = 0xca54;
@ -1396,7 +1394,7 @@ public:
void locklighton();
void useladderb();
//void spriteupdate();
void usetempcharset();
//void usetempcharset();
void discops();
//void printdirect();
//void delthisone();
@ -1779,7 +1777,7 @@ public:
void tattooman();
void usehandle();
void openfile();
void usecharset1();
//void usecharset1();
//void makenextblock();
void showpuztext();
//void addalong();

View File

@ -2308,5 +2308,13 @@ void DreamGenContext::dolook() {
worktoscreenm();
}
void DreamGenContext::usecharset1() {
data.word(kCurrentset) = data.word(kCharset1);
}
void DreamGenContext::usetempcharset() {
data.word(kCurrentset) = data.word(kTempcharset);
}
} /*namespace dreamgen */

View File

@ -335,4 +335,7 @@
void look();
void autolook();
void dolook();
void usetempcharset();
void usecharset1();