From d61b1045682e054cb99c3497da8b79a48f104c28 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 1 Apr 2006 21:43:49 +0000 Subject: Removed yet another superfluous addDefaultDirectory call, and removed the unused Engine::getGameDataPath method (just use _gameDataPath directly if you need this) svn-id: r21534 --- base/engine.cpp | 7 ------- base/engine.h | 3 --- 2 files changed, 10 deletions(-) (limited to 'base') diff --git a/base/engine.cpp b/base/engine.cpp index 38e2b9e0dc..ae8bfa0dcf 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -43,9 +43,6 @@ Engine::Engine(OSystem *syst) _timer = Common::g_timer; - // Add default file directory - Common::File::addDefaultDirectory(_gameDataPath); - _saveFileMan = _system->getSavefileManager(); _autosavePeriod = ConfMan.getInt("autosave_period"); @@ -147,10 +144,6 @@ bool Engine::shouldPerformAutoSave(int lastSaveTime) { return _autosavePeriod != 0 && diff > _autosavePeriod * 1000; } -const char *Engine::getGameDataPath() const { - return _gameDataPath.c_str(); -} - void Engine::errorString(const char *buf1, char *buf2) { strcpy(buf2, buf1); } diff --git a/base/engine.h b/base/engine.h index da01a34eb9..a786a73cc3 100644 --- a/base/engine.h +++ b/base/engine.h @@ -66,9 +66,6 @@ public: */ virtual int go() = 0; - /** Get the path to the game data directory. */ - virtual const char *getGameDataPath() const; - /** Specific for each engine: prepare error string. */ virtual void errorString(const char *buf_input, char *buf_output); -- cgit v1.2.3