aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/stubs.cpp
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-30 10:06:03 +0100
committerBertrand Augereau2011-11-30 10:06:03 +0100
commit5d704ef12f3d388f32dcbb6ce8dc7b76fdeb7c62 (patch)
treeaf0b98a878afdc6a7673c79bbd3ea3a5bf207f38 /engines/dreamweb/stubs.cpp
parenteb1fbcd6aacc53cadeb00149bc3adcd615904788 (diff)
downloadscummvm-rg350-5d704ef12f3d388f32dcbb6ce8dc7b76fdeb7c62.tar.gz
scummvm-rg350-5d704ef12f3d388f32dcbb6ce8dc7b76fdeb7c62.tar.bz2
scummvm-rg350-5d704ef12f3d388f32dcbb6ce8dc7b76fdeb7c62.zip
EAMWEB: 'loadtemptext' and 'loadtraveltext' ported to C++
Diffstat (limited to 'engines/dreamweb/stubs.cpp')
-rw-r--r--engines/dreamweb/stubs.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index fa3b59d9d1..a566f8f222 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -2311,8 +2311,7 @@ void DreamGenContext::loadfolder() {
loadintotemp2("DREAMWEB.G10");
loadintotemp3("DREAMWEB.G11");
loadtempcharset("DREAMWEB.C02");
- dx = kFoldertext; // "DREAMWEB.T50"
- loadtemptext();
+ loadtemptext("DREAMWEB.T50");
}
void DreamGenContext::showfolder() {
@@ -2498,5 +2497,17 @@ void DreamGenContext::folderexit() {
showframe(tempGraphics2(), 296, 178, 6, 0);
}
+void DreamGenContext::loadtraveltext() {
+ data.word(kTraveltext) = standardload("DREAMWEB.T81");
+}
+
+void DreamGenContext::loadtemptext() {
+ loadtemptext((const char *)cs.ptr(dx, 0));
+}
+
+void DreamGenContext::loadtemptext(const char *fileName) {
+ data.word(kTextfile1) = standardload(fileName);
+}
+
} /*namespace dreamgen */