mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 10:48:43 +00:00
DREAMWEB: 'folderhints' ported to C++
This commit is contained in:
parent
c23f8f856c
commit
c91b2457d0
@ -307,6 +307,7 @@ generator = cpp(context, "DreamGen", blacklist = [
|
||||
'showrightpage',
|
||||
'nextfolder',
|
||||
'lastfolder',
|
||||
'folderhints',
|
||||
'getlocation',
|
||||
'setlocation',
|
||||
], skip_output = [
|
||||
|
@ -9740,57 +9740,6 @@ void DreamGenContext::loadmenu() {
|
||||
loadintotemp2();
|
||||
}
|
||||
|
||||
void DreamGenContext::folderhints() {
|
||||
STACK_CHECK;
|
||||
_cmp(data.byte(kFolderpage), 5);
|
||||
if (!flags.z())
|
||||
goto notaideadd;
|
||||
_cmp(data.byte(kAidedead), 1);
|
||||
if (flags.z())
|
||||
goto notaideadd;
|
||||
al = 13;
|
||||
getlocation();
|
||||
_cmp(al, 1);
|
||||
if (flags.z())
|
||||
goto notaideadd;
|
||||
al = 13;
|
||||
setlocation();
|
||||
showfolder();
|
||||
al = 30;
|
||||
findtext1();
|
||||
di = 0;
|
||||
bx = 86;
|
||||
dl = 141;
|
||||
ah = 16;
|
||||
printdirect();
|
||||
worktoscreenm();
|
||||
cx = 200;
|
||||
hangonp();
|
||||
return;
|
||||
notaideadd:
|
||||
_cmp(data.byte(kFolderpage), 9);
|
||||
if (!flags.z())
|
||||
return /* (notaristoadd) */;
|
||||
al = 7;
|
||||
getlocation();
|
||||
_cmp(al, 1);
|
||||
if (flags.z())
|
||||
return /* (notaristoadd) */;
|
||||
al = 7;
|
||||
setlocation();
|
||||
showfolder();
|
||||
al = 31;
|
||||
findtext1();
|
||||
di = 0;
|
||||
bx = 86;
|
||||
dl = 141;
|
||||
ah = 16;
|
||||
printdirect();
|
||||
worktoscreenm();
|
||||
cx = 200;
|
||||
hangonp();
|
||||
}
|
||||
|
||||
void DreamGenContext::loadfolder() {
|
||||
STACK_CHECK;
|
||||
dx = 2299;
|
||||
|
@ -178,7 +178,6 @@ public:
|
||||
static const uint16 addr_entersymbol = 0xc7d8;
|
||||
static const uint16 addr_folderexit = 0xc7cc;
|
||||
static const uint16 addr_loadfolder = 0xc7c4;
|
||||
static const uint16 addr_folderhints = 0xc7bc;
|
||||
static const uint16 addr_loadmenu = 0xc7b0;
|
||||
static const uint16 addr_showmenu = 0xc7ac;
|
||||
static const uint16 addr_dumpmenu = 0xc79c;
|
||||
@ -1319,7 +1318,7 @@ public:
|
||||
void openpoolboss();
|
||||
void buttontwo();
|
||||
//void delsprite();
|
||||
//void getroomspaths();
|
||||
//void folderhints();
|
||||
//void dumptextline();
|
||||
void fadescreendownhalf();
|
||||
void useplate();
|
||||
@ -1397,7 +1396,7 @@ public:
|
||||
//void calcmapad();
|
||||
void getridofall();
|
||||
void copper();
|
||||
void folderhints();
|
||||
//void getroomspaths();
|
||||
void openhoteldoor();
|
||||
//void removesetobject();
|
||||
//void dumptimedtext();
|
||||
|
@ -2463,5 +2463,27 @@ void DreamGenContext::lastfolder() {
|
||||
}
|
||||
}
|
||||
|
||||
void DreamGenContext::folderhints() {
|
||||
if (data.byte(kFolderpage) == 5) {
|
||||
if ((data.byte(kAidedead) != 1) && (getlocation(13) != 1)) {
|
||||
setlocation(13);
|
||||
showfolder();
|
||||
const uint8 *string = getTextInFile1(30);
|
||||
printdirect(string, 0, 86, 141, true);
|
||||
worktoscreenm();
|
||||
hangonp(200);
|
||||
}
|
||||
} else if (data.byte(kFolderpage) == 9) {
|
||||
if (getlocation(7) != 1) {
|
||||
setlocation(7);
|
||||
showfolder();
|
||||
const uint8 *string = getTextInFile1(31);
|
||||
printdirect(string, 0, 86, 141, true);
|
||||
worktoscreenm();
|
||||
hangonp(200);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} /*namespace dreamgen */
|
||||
|
||||
|
@ -361,6 +361,7 @@
|
||||
void showrightpage();
|
||||
void nextfolder();
|
||||
void lastfolder();
|
||||
void folderhints();
|
||||
uint8 getlocation(uint8 index);
|
||||
void getlocation();
|
||||
void setlocation(uint8 index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user