From 542014c309cb713ee5f550f344065fa9124f17bd Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 24 Feb 2012 04:44:26 +0000 Subject: 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. --- engines/dreamweb/dreamweb.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/dreamweb/dreamweb.cpp') 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; -- cgit v1.2.3