Skip to content

Commit

Permalink
DREAMWEB: 'biblequote' ported to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Dec 5, 2011
1 parent e19f789 commit 90861ce
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 28 deletions.
1 change: 1 addition & 0 deletions devtools/tasmrecover/tasm-recover
Expand Up @@ -147,6 +147,7 @@ generator = cpp(context, "DreamGen", blacklist = [
'autosetwalk',
'backobject',
'barwoman',
'biblequote',
'blockget',
'blocknametext',
'bothchannels',
Expand Down
27 changes: 0 additions & 27 deletions engines/dreamweb/dreamgen.cpp
Expand Up @@ -2396,33 +2396,6 @@ void DreamGenContext::gettingShot() {
clearBeforeLoad();
}

void DreamGenContext::bibleQuote() {
STACK_CHECK;
mode640x480();
dx = 1100;
showPCX();
fadeScreenUps();
cx = 80;
hangOne();
_cmp(data.byte(kLasthardkey), 1);
if (flags.z())
goto biblequotearly;
cx = 560;
hangOne();
_cmp(data.byte(kLasthardkey), 1);
if (flags.z())
goto biblequotearly;
fadeScreenDowns();
cx = 200;
hangOne();
_cmp(data.byte(kLasthardkey), 1);
if (flags.z())
goto biblequotearly;
cancelCh0();
biblequotearly:
data.byte(kLasthardkey) = 0;
}

void DreamGenContext::intro() {
STACK_CHECK;
dx = 1035;
Expand Down
1 change: 0 additions & 1 deletion engines/dreamweb/dreamgen.h
Expand Up @@ -787,7 +787,6 @@ class DreamGenContext : public Context {
void candles1();
void showOpBox();
void clearBeforeLoad();
void bibleQuote();
void doFade();
void useTrainer();
void dumpCurrent();
Expand Down
31 changes: 31 additions & 0 deletions engines/dreamweb/stubs.cpp
Expand Up @@ -3148,5 +3148,36 @@ void DreamGenContext::hangOne() {
hangOne(cx);
}

void DreamGenContext::bibleQuote() {
mode640x480();

showPCX("DREAMWEB.I00");
fadeScreenUps();

hangOne(80);
if (data.byte(kLasthardkey) == 1) {
data.byte(kLasthardkey) = 0;
return; // "biblequotearly"
}

hangOne(560);
if (data.byte(kLasthardkey) == 1) {
data.byte(kLasthardkey) = 0;
return; // "biblequotearly"
}

fadeScreenDowns();

hangOne(200);
if (data.byte(kLasthardkey) == 1) {
data.byte(kLasthardkey) = 0;
return; // "biblequotearly"
}

cancelCh0();

data.byte(kLasthardkey) = 0;
}

} /*namespace dreamgen */

1 change: 1 addition & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -451,5 +451,6 @@
void hangOne();
void showPCX(const ::Common::String &name);
void showPCX();
void bibleQuote();

#endif

0 comments on commit 90861ce

Please sign in to comment.