diff options
author | Max Horn | 2002-08-18 22:47:11 +0000 |
---|---|---|
committer | Max Horn | 2002-08-18 22:47:11 +0000 |
commit | d354eaaf422cd7059c6997db14853d35d0111173 (patch) | |
tree | bdedf8abe1805e90a4f271a5ceac4dcf8a8f0090 /engine.h | |
parent | 7604484caf2d5846a1cc1606c577fedc5791089c (diff) | |
download | scummvm-rg350-d354eaaf422cd7059c6997db14853d35d0111173.tar.gz scummvm-rg350-d354eaaf422cd7059c6997db14853d35d0111173.tar.bz2 scummvm-rg350-d354eaaf422cd7059c6997db14853d35d0111173.zip |
more code unification; as a side effect, simon can take advantage of the save path settings in the config file (inspired by patch #587694)
svn-id: r4770
Diffstat (limited to 'engine.h')
-rw-r--r-- | engine.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -34,14 +34,22 @@ extern SoundMixer *g_mixer; class Engine { public: OSystem *_system; - SoundMixer *_mixer; +protected: + char *_gameDataPath; + +public: Engine(GameDetector *detector, OSystem *syst); virtual ~Engine(); // Invoke the main engine loop using this method virtual void go() = 0; + + // Get the save game dir path + const char *getSavePath() const; + + const char *getGameDataPath() const { return _gameDataPath; } // Create a new engine object based on the detector - either // a Scumm or a SimonState object currently. |