aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2012-02-24 06:15:17 +0000
committerD G Turner2012-02-24 15:04:16 +0000
commit966210b56dbe9a37ffde1fb0b46cc794ffed0562 (patch)
treefc7b2128e74bb24e5d19395ba942dad333483892 /engines
parenta397748aceab258ccfe36cb6719bdbbda1dee730 (diff)
downloadscummvm-rg350-966210b56dbe9a37ffde1fb0b46cc794ffed0562.tar.gz
scummvm-rg350-966210b56dbe9a37ffde1fb0b46cc794ffed0562.tar.bz2
scummvm-rg350-966210b56dbe9a37ffde1fb0b46cc794ffed0562.zip
DREAMWEB: Migrate remaining minor functions to using datafile prefix variable.
Currently, the usages associated with savegames have been omitted. These will probably need a different prefix constant as it is likely foreign variants still use "DREAMWEB.*" for savegames, while using a different prefix for the datafiles. We may even migrate away from this naming convention as this causes savegame collisions when multiple language variants are present, which could cause issues. The usages in the Room members of the constant g_roomData structure have also been omitted, as the members are copied into the savegame format, thus replacing these and fixing other accesses is not trivial.
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/stubs.cpp2
-rw-r--r--engines/dreamweb/vgagrafx.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index a542173e1d..8e63774317 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -2001,7 +2001,7 @@ void DreamWebEngine::readSetData() {
useCharset1();
// FIXME: Why is this commented out?
- //openFile("DREAMWEB.VOL");
+ //openFile(getDatafilePrefix() + "VOL");
//uint8 *volumeTab = getSegment(data.word(kSoundbuffer)).ptr(16384, 0);
//readFromFile(volumeTab, 2048-256);
//closeFile();
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 61f3977710..be7d210999 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -409,7 +409,7 @@ bool DreamWebEngine::pixelCheckSet(const ObjPos *pos, uint8 x, uint8 y) {
void DreamWebEngine::loadPalFromIFF() {
Common::File palFile;
uint8* buf = new uint8[2000];
- palFile.open("DREAMWEB.PAL");
+ palFile.open(getDatafilePrefix() + "PAL");
palFile.read(buf, 2000);
palFile.close();