Skip to content

Commit

Permalink
DREAMWEB: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wjp committed Dec 14, 2011
1 parent a489430 commit ee5c967
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
19 changes: 5 additions & 14 deletions engines/dreamweb/stubs.cpp
Expand Up @@ -4587,8 +4587,7 @@ void DreamGenContext::showDiaryPage() {
data.byte(kKerning) = 1;
useTempCharset();
data.word(kCharshift) = 91+91;
uint16 offset = kTextstart + getSegment(data.word(kTextfile1)).word(data.byte(kDiarypage) * 2);
const uint8 *string = getSegment(data.word(kTextfile1)).ptr(offset, 0);
const uint8 *string = getTextInFile1(data.byte(kDiarypage));
uint16 y = kDiaryy + 16;
printDirect(&string, kDiaryx + 48, &y, 240, 240 & 1);
y = kDiaryy + 16;
Expand All @@ -4602,14 +4601,12 @@ void DreamGenContext::showDiaryPage() {

void DreamGenContext::dumpDiaryKeys() {
if (data.byte(kPresscount) == 1) {
if (data.byte(kSartaindead) != 1 && data.byte(kDiarypage) == 5 && DreamBase::getLocation(6) != 1) {
if (data.byte(kSartaindead) != 1 && data.byte(kDiarypage) == 5 && getLocation(6) != 1) {
// Add Sartain Industries note
DreamBase::setLocation(6);
setLocation(6);
delPointer();
uint16 offset = kTextstart + getSegment(data.word(kTextfile1)).word(12 * 2);
const uint8 *string = getSegment(data.word(kTextfile1)).ptr(offset, 0);
uint16 y = 106;
printDirect(&string, 70, &y, 241, 241 & 1);
const uint8 *string = getTextInFile1(12);
printDirect(string, 70, 106, 241, 241 & 1);
workToScreenM();
hangOnP(200);
createPanel();
Expand Down Expand Up @@ -4649,8 +4646,6 @@ void DreamGenContext::runEndSeq() {
}

void DreamGenContext::lookAtCard() {
//showFrame((Frame *)ds.ptr(0, 0), di, bx, ax & 0x1ff, ah & 0xfe, &width, &height);
//al = DreamBase::printDirect(&string, di, &y, dl, (bool)(dl & 1));
data.byte(kManisoffscreen) = 1;
getRidOfReels();
loadKeypad();
Expand All @@ -4662,14 +4657,10 @@ void DreamGenContext::lookAtCard() {
findNextColon(&obText);
uint16 y = 124;
printDirect(&obText, 36, &y, 241, 241 & 1);
push(es);
push(si);
workToScreenM();
hangOnW(280);
createPanel2();
showFrame(tempGraphics(), 160, 80, 42, 128);
si = pop();
es = pop();
printDirect(obText, 36, 130, 241, 241 & 1);
workToScreenM();
hangOnW(200);
Expand Down
6 changes: 6 additions & 0 deletions engines/dreamweb/stubs.h
Expand Up @@ -371,7 +371,13 @@
void folderHints();
void folderExit();
void getLocation();
uint8 getLocation(uint8 index) {
return DreamBase::getLocation(index);
}
void setLocation();
void setLocation(uint8 index) {
DreamBase::setLocation(index);
}
void loadTempText();
void loadTempText(const char *fileName);
void loadTravelText();
Expand Down

0 comments on commit ee5c967

Please sign in to comment.