DREAMWEB: 'loadtempcharset' ported to C++

This commit is contained in:
Bertrand Augereau 2011-11-18 00:14:30 +01:00
parent ee1c5ce78a
commit 79be8a541b
5 changed files with 12 additions and 9 deletions

View File

@ -237,6 +237,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'loadintotemp',
'loadintotemp2',
'loadintotemp3',
'loadtempcharset',
'loadroomssample',
], skip_output = [
# These functions are processed but not output

View File

@ -14098,12 +14098,6 @@ void DreamGenContext::loadtraveltext() {
data.word(kTraveltext) = ax;
}
void DreamGenContext::loadtempcharset() {
STACK_CHECK;
standardload();
data.word(kTempcharset) = ax;
}
void DreamGenContext::loadtemptext() {
STACK_CHECK;
standardload();
@ -16027,7 +16021,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) {
case addr_randomnum1: randomnum1(); break;
case addr_randomnum2: randomnum2(); break;
case addr_loadtraveltext: loadtraveltext(); break;
case addr_loadtempcharset: loadtempcharset(); break;
case addr_loadtemptext: loadtemptext(); break;
case addr_getridofreels: getridofreels(); break;
case addr_getridofall: getridofall(); break;

View File

@ -64,7 +64,6 @@ public:
static const uint16 addr_getridofall = 0xcb3c;
static const uint16 addr_getridofreels = 0xcb38;
static const uint16 addr_loadtemptext = 0xcb2c;
static const uint16 addr_loadtempcharset = 0xcb24;
static const uint16 addr_loadtraveltext = 0xcb14;
static const uint16 addr_randomnum2 = 0xcb08;
static const uint16 addr_randomnum1 = 0xcb04;
@ -1354,7 +1353,7 @@ public:
void findfirstpath();
//void cancelch1();
void loadold();
void loadtempcharset();
//void loadtempcharset();
void useslab();
void dumpzoom();
//void aboutturn();

View File

@ -246,6 +246,14 @@ void DreamGenContext::loadintotemp3(const char *fileName) {
data.word(kTempgraphics3) = standardload(fileName);
}
void DreamGenContext::loadtempcharset() {
loadtempcharset((const char *)cs.ptr(dx, 0));
}
void DreamGenContext::loadtempcharset(const char *fileName) {
data.word(kTempcharset) = standardload(fileName);
}
void DreamGenContext::seecommandtail() {
data.word(kSoundbaseadd) = 0x220;
data.byte(kSoundint) = 5;

View File

@ -31,6 +31,8 @@
void loadintotemp(const char *fileName);
void loadintotemp2(const char *fileName);
void loadintotemp3(const char *fileName);
void loadtempcharset();
void loadtempcharset(const char *fileName);
void multidump();
void multidump(uint16 x, uint16 y, uint8 width, uint8 height);
void frameoutv(uint8 *dst, const uint8 *src, uint16 pitch, uint16 width, uint16 height, int16 x, int16 y);