aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_game.h
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-04-17 19:34:09 +0200
committerEinar Johan Trøan Sømåen2013-04-17 19:42:05 +0200
commitcbae39ab8773908fd5945c4f93468148fb5d76ea (patch)
tree941cb71eaa41412ca2034729dbaa44ab1ced4c2e /engines/wintermute/base/base_game.h
parent75443da53f053365e18f2e66f7a10ce0d3c66707 (diff)
downloadscummvm-rg350-cbae39ab8773908fd5945c4f93468148fb5d76ea.tar.gz
scummvm-rg350-cbae39ab8773908fd5945c4f93468148fb5d76ea.tar.bz2
scummvm-rg350-cbae39ab8773908fd5945c4f93468148fb5d76ea.zip
WINTERMUTE: Move settings from BaseGame to separate struct.
Diffstat (limited to 'engines/wintermute/base/base_game.h')
-rw-r--r--engines/wintermute/base/base_game.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/engines/wintermute/base/base_game.h b/engines/wintermute/base/base_game.h
index 5666fb818c..4dfe45592b 100644
--- a/engines/wintermute/base/base_game.h
+++ b/engines/wintermute/base/base_game.h
@@ -47,7 +47,6 @@ class BaseTransitionMgr;
class ScEngine;
class BaseFontStorage;
class BaseGameMusic;
-class BaseStringTable;
class BaseQuickMsg;
class UIWindow;
class BaseViewport;
@@ -59,6 +58,7 @@ class SXMath;
class BaseKeyboardState;
class VideoPlayer;
class VideoTheoraPlayer;
+class BaseGameSettings;
class BaseGame: public BaseObject {
public:
@@ -128,10 +128,18 @@ public:
uint32 _currentTime;
uint32 _deltaTime;
+ // Init-functions:
+ bool initConfManSettings();
+ bool initRenderer();
+ bool loadGameSettingsFile();
bool initialize1();
bool initialize2();
bool initialize3();
BaseTransitionMgr *_transMgr;
+
+ // String Table
+ void expandStringByStringTable(char **str) const;
+ char *getKeyFromStringTable(const char *str) const;
void LOG(bool res, const char *fmt, ...);
@@ -155,10 +163,6 @@ public:
int _viewportSP;
- BaseStringTable *_stringTable;
- int _settingsResWidth;
- int _settingsResHeight;
- char *_settingsGameFile;
bool _suppressScriptErrors;
bool _mouseLeftDown; // TODO: Hide
@@ -268,22 +272,16 @@ private:
bool _mouseRightDown;
bool _mouseMidlleDown;
- bool _settingsRequireAcceleration;
- bool _settingsAllowWindowed;
- bool _settingsAllowAdvanced;
- bool _settingsAllowAccessTab;
- bool _settingsAllowAboutTab;
- bool _settingsRequireSound;
- bool _settingsAllowDesktopRes;
- int _settingsTLMode;
+
+ BaseGameSettings *_settings;
+
virtual bool invalidateDeviceObjects();
virtual bool restoreDeviceObjects();
// TODO: This can probably be removed completely:
bool _saveDirChecked;
- bool _richSavedGames;
+
Common::String _localSaveDir;
- Common::String _savedGameExt;
bool _reportTextureFormat;
@@ -298,7 +296,6 @@ private:
void *_engineLogCallbackData;
bool _videoSubtitles;
- bool _compressedSavegames;
bool _personalizedSave;