aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamweb.cpp
diff options
context:
space:
mode:
authorD G Turner2012-02-24 04:44:26 +0000
committerD G Turner2012-02-24 15:04:09 +0000
commit542014c309cb713ee5f550f344065fa9124f17bd (patch)
tree587c8f898f58477e8eb9dc73e843d1ec3cabd77b /engines/dreamweb/dreamweb.cpp
parent14e6a5f8f7c7e3ac0d70ca4d59032954353fc823 (diff)
downloadscummvm-rg350-542014c309cb713ee5f550f344065fa9124f17bd.tar.gz
scummvm-rg350-542014c309cb713ee5f550f344065fa9124f17bd.tar.bz2
scummvm-rg350-542014c309cb713ee5f550f344065fa9124f17bd.zip
DREAMWEB: Add datafile name prefix to engine and modify showPCX() to it.
This new variable removes the need for duplicates strings of the form "DREAMWEB.*" spread throughout the dreamweb engine, replacing them with a common const string on the engine holding the datafile name prefix. This will reduce binary size and it should also simplify adding support for foreign language variants, where the datafile name prefix is changed. To demostrate usage and prove this, showPCX() is migrated to using this.
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r--engines/dreamweb/dreamweb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index 2ee20210ba..4ed6ef7c15 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -62,6 +62,8 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam
_channel0 = 0;
_channel1 = 0;
+ _datafilePrefix = Common::String("DREAMWEB.");
+
_openChangeSize = kInventx+(4*kItempicsize);
_quitRequested = false;