aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/vgagrafx.cpp
diff options
context:
space:
mode:
authorDavid Turner2012-02-24 09:59:27 -0800
committerDavid Turner2012-02-24 09:59:27 -0800
commit62b01525f00186dd8088452ba2ed3f82948f070e (patch)
tree33f25803ebfb1ab9cbdd33f5487a15c6a5317dab /engines/dreamweb/vgagrafx.cpp
parent30fa5e166379b9e0764b437c6925c22d908d7122 (diff)
parent966210b56dbe9a37ffde1fb0b46cc794ffed0562 (diff)
downloadscummvm-rg350-62b01525f00186dd8088452ba2ed3f82948f070e.tar.gz
scummvm-rg350-62b01525f00186dd8088452ba2ed3f82948f070e.tar.bz2
scummvm-rg350-62b01525f00186dd8088452ba2ed3f82948f070e.zip
Merge pull request #200 from digitall/dreamwebDatafilePrefix
DREAMWEB: Addition of Shared Datafile Prefix String to Engine
Diffstat (limited to 'engines/dreamweb/vgagrafx.cpp')
-rw-r--r--engines/dreamweb/vgagrafx.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 26b5e60b9d..be7d210999 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -153,7 +153,8 @@ void DreamWebEngine::setMode() {
initGraphics(320, 200, false);
}
-void DreamWebEngine::showPCX(const Common::String &name) {
+void DreamWebEngine::showPCX(const Common::String &suffix) {
+ Common::String name = getDatafilePrefix() + suffix;
Common::File pcxFile;
if (!pcxFile.open(name)) {
@@ -408,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();