DREAMWEB: 'getbackfromob' ported to C++

This commit is contained in:
Bertrand Augereau
2011-11-26 17:04:07 +01:00
parent f7fdb0d4b7
commit 4192d1241a
5 changed files with 9 additions and 14 deletions
+1
View File
@@ -284,6 +284,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'usecharset1',
'usetempcharset',
'disablepath',
'getbackfromob',
], skip_output = [
# These functions are processed but not output
'dreamweb',
-11
View File
@@ -3229,17 +3229,6 @@ void DreamGenContext::makemainscreen() {
data.byte(kManisoffscreen) = 0;
}
void DreamGenContext::getbackfromob() {
STACK_CHECK;
_cmp(data.byte(kPickup), 1);
if (!flags.z())
goto notheldob;
blank();
return;
notheldob:
getback1();
}
void DreamGenContext::incryanpage() {
STACK_CHECK;
_cmp(data.byte(kCommandtype), 222);
+1 -2
View File
@@ -417,7 +417,6 @@ public:
static const uint16 addr_openob = 0xc354;
static const uint16 addr_openinv = 0xc34c;
static const uint16 addr_incryanpage = 0xc348;
static const uint16 addr_getbackfromob = 0xc344;
static const uint16 addr_makemainscreen = 0xc340;
static const uint16 addr_findallopen = 0xc32c;
static const uint16 addr_fillopen = 0xc324;
@@ -1447,7 +1446,7 @@ public:
//void examineobtext();
void liftnoise();
void workoutframes();
void getbackfromob();
//void getbackfromob();
void dumpsymbox();
void loadgame();
void getridoftemp();
+6
View File
@@ -257,6 +257,12 @@ void DreamGenContext::transfertext() {
data.word(kExtextpos) += len + 1;
}
void DreamGenContext::getbackfromob() {
if (data.byte(kPickup) != 1)
getback1();
else
blank();
}
} /*namespace dreamgen */
+1 -1
View File
@@ -337,5 +337,5 @@
void dolook();
void usetempcharset();
void usecharset1();
void getbackfromob();