diff options
author | Bertrand Augereau | 2011-11-30 10:06:03 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-30 10:06:03 +0100 |
commit | 5d704ef12f3d388f32dcbb6ce8dc7b76fdeb7c62 (patch) | |
tree | af0b98a878afdc6a7673c79bbd3ea3a5bf207f38 /engines/dreamweb/stubs.cpp | |
parent | eb1fbcd6aacc53cadeb00149bc3adcd615904788 (diff) | |
download | scummvm-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.cpp | 15 |
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 */ |