Skip to content

Commit

Permalink
DREAMWEB: 'showdiscops' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Nov 26, 2011
1 parent 026b13a commit 0b6042e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 34 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'randomaccess',
'turnonpower',
'showmainops',
'showdiscops',
'powerlighton',
'powerlightoff',
'accesslighton',
Expand Down
28 changes: 0 additions & 28 deletions engines/dreamweb/dreamgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10844,34 +10844,6 @@ void DreamGenContext::getbackfromops() {
blank();
}

void DreamGenContext::showdiscops() {
STACK_CHECK;
ds = data.word(kTempgraphics);
di = (60)+128+4;
bx = (52)+12;
al = 1;
ah = 0;
showframe();
ds = data.word(kTempgraphics);
di = (60)+10;
bx = (52)+10;
al = 9;
ah = 0;
showframe();
ds = data.word(kTempgraphics);
di = (60)+59;
bx = (52)+30;
al = 10;
ah = 0;
showframe();
ds = data.word(kTempgraphics);
di = (60)+176+2;
bx = (52)+60-4;
al = 5;
ah = 0;
showframe();
}

void DreamGenContext::loadsavebox() {
STACK_CHECK;
dx = 1961;
Expand Down
11 changes: 5 additions & 6 deletions engines/dreamweb/dreamgen.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ class DreamGenContext : public Context {
static const uint16 addr_getbacktoops = 0xc848;
static const uint16 addr_loadgame = 0xc844;
static const uint16 addr_loadsavebox = 0xc840;
static const uint16 addr_showdiscops = 0xc83c;
static const uint16 addr_getbackfromops = 0xc834;
static const uint16 addr_dosaveload = 0xc830;
static const uint16 addr_zoomonoff = 0xc828;
Expand Down Expand Up @@ -1236,7 +1235,7 @@ class DreamGenContext : public Context {
void intromonks1();
void resetlocation();
//void oldtonames();
void showdiscops();
void intromonks2();
void advisor();
void additionaltext();
//void compare();
Expand Down Expand Up @@ -1389,6 +1388,7 @@ class DreamGenContext : public Context {
//void spriteupdate();
//void usetempcharset();
void discops();
//void showdiscops();
//void printdirect();
//void delthisone();
//void makebackob();
Expand Down Expand Up @@ -1482,11 +1482,11 @@ class DreamGenContext : public Context {
void redes();
//void turnanypathoff();
void errormessage1();
void clearchanges();
void errormessage2();
void errormessage3();
//void deletetaken();
//void putundermenu();
void intromonks2();
//void checkifex();
void intromagic2();
void intromagic3();
void edeninbath();
Expand Down Expand Up @@ -1782,7 +1782,7 @@ class DreamGenContext : public Context {
void greyscalesum();
void buttoneight();
void findexobject();
void errormessage2();
void clearchanges();
void usechurchhole();
void searchforfiles();
void monkspeaking();
Expand All @@ -1803,7 +1803,6 @@ class DreamGenContext : public Context {
//void delcurs();
//void randomaccess();
//void calcfrframe();
//void checkifex();
//void findobname();
void initialmoncols();
void checkforshake();
Expand Down
7 changes: 7 additions & 0 deletions engines/dreamweb/saveload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,5 +373,12 @@ void DreamGenContext::showmainops() {
showframe(tempGraphics(), kOpsx+128+4, kOpsy+12, 1, 0);
}

void DreamGenContext::showdiscops() {
showframe(tempGraphics(), kOpsx+128+4, kOpsy+12, 1, 0);
showframe(tempGraphics(), kOpsx+10, kOpsy+10, 9, 0);
showframe(tempGraphics(), kOpsx+59, kOpsy+30, 10, 0);
showframe(tempGraphics(), kOpsx+176+2, kOpsy+60-4, 5, 0);
}

} /*namespace dreamgen */

1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@
void playchannel1();
void playchannel1(uint8 index);
void showmainops();
void showdiscops();
void createpanel();
void createpanel2();
void findroominloc();
Expand Down

0 comments on commit 0b6042e

Please sign in to comment.