Skip to content

Commit

Permalink
DREAMWEB: 'showMan' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Dec 4, 2011
1 parent 68fe065 commit 277a1c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -416,6 +416,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'showkeypad',
'showleftpage',
'showmainops',
'showman',
'showmenu',
'showoutermenu',
'showouterpad',
Expand Down
25 changes: 0 additions & 25 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -10867,31 +10867,6 @@ void DreamGenContext::middlePanel() {
showFrame();
}

void DreamGenContext::showMan() {
STACK_CHECK;
ds = data.word(kIcons1);
di = 0;
bx = 0;
al = 0;
ah = 0;
showFrame();
ds = data.word(kIcons1);
di = 0;
bx = 114;
al = 1;
ah = 0;
showFrame();
_cmp(data.byte(kShadeson), 0);
if (flags.z())
return /* (notverycool) */;
ds = data.word(kIcons1);
di = 28;
bx = 25;
al = 2;
ah = 0;
showFrame();
}

void DreamGenContext::panelIcons1() {
STACK_CHECK;
di = 0;
Expand Down
5 changes: 2 additions & 3 deletions engines/dreamweb/dreamgen.h
Expand Up @@ -582,7 +582,7 @@ class DreamGenContext : public Context {
void entryTexts();
void checkInput();
void setMode();
void getBackFromOps();
void showDiary();
void openSarters();
void putUnderCentre();
void checkObjectSize();
Expand Down Expand Up @@ -630,7 +630,7 @@ class DreamGenContext : public Context {
void train();
void fadeDownMon();
void bartender();
void showDiary();
void getBackFromOps();
void sLabDoorF();
void outOfOpen();
void dirCom();
Expand Down Expand Up @@ -867,7 +867,6 @@ class DreamGenContext : public Context {
void autoAppear();
void openRyan();
void callHotelLift();
void showMan();
void useFullCart();
void newPlace();
void loadSample();
Expand Down
7 changes: 7 additions & 0 deletions engines/dreamweb/stubs.cpp
Expand Up @@ -2802,6 +2802,13 @@ void DreamGenContext::showExit() {
showFrame(icons1(), 274, 154, 11, 0);
}

void DreamGenContext::showMan() {
showFrame(icons1(), 0, 0, 0, 0);
showFrame(icons1(), 0, 114, 1, 0);
if (data.byte(kShadeson))
showFrame(icons1(), 28, 25, 2, 0);
}

uint8 DreamGenContext::getLocation(uint8 index) {
return data.byte(kRoomscango + index);
}
Expand Down
1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -406,6 +406,7 @@
void showKeypad();
void showOuterPad();
void showExit();
void showMan();
void buttonOne();
void buttonTwo();
void buttonThree();
Expand Down

0 comments on commit 277a1c9

Please sign in to comment.