aboutsummaryrefslogtreecommitdiff
path: root/base/engine.cpp
diff options
context:
space:
mode:
authorMax Horn2004-11-27 00:26:11 +0000
committerMax Horn2004-11-27 00:26:11 +0000
commit876e738dce6e3725ce28d8caf1520e71edfe09f0 (patch)
tree582797db161e7209b70fb3c563bdb5d5b3a2e060 /base/engine.cpp
parentd56cd17183008830b4fd50d903f7a0250928b691 (diff)
downloadscummvm-rg350-876e738dce6e3725ce28d8caf1520e71edfe09f0.tar.gz
scummvm-rg350-876e738dce6e3725ce28d8caf1520e71edfe09f0.tar.bz2
scummvm-rg350-876e738dce6e3725ce28d8caf1520e71edfe09f0.zip
Moved Engine::getSavePath() to class SaveFileManager; removed the 'directory' parameter from SaveFileManager::openSavefile and listSavefiles (they always use getSavePath() now, which is what we did anyway)
svn-id: r15901
Diffstat (limited to 'base/engine.cpp')
-rw-r--r--base/engine.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/base/engine.cpp b/base/engine.cpp
index 7cdbc7c663..689b4ad4b1 100644
--- a/base/engine.cpp
+++ b/base/engine.cpp
@@ -81,42 +81,6 @@ void Engine::initCommonGFX(GameDetector &detector) {
_system->setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
}
-const char *Engine::getSavePath() const {
-
-#if defined(__PALM_OS__)
- return SCUMMVM_SAVEPATH;
-#else
-
- const char *dir = NULL;
-
-#if !defined(MACOS_CARBON) && !defined(_WIN32_WCE)
- dir = getenv("SCUMMVM_SAVEPATH");
-#endif
-
- // If SCUMMVM_SAVEPATH was not specified, try to use game specific savepath from config
- if (!dir || dir[0] == 0) {
- dir = ConfMan.get("savepath").c_str();
-
- // Work around a bug (#999122) in the original 0.6.1 release of
- // ScummVM, which would insert a bad savepath value into config files.
- if (0 == strcmp(dir, "None")) {
- ConfMan.removeKey("savepath", ConfMan.getActiveDomain());
- ConfMan.flushToDisk();
- dir = ConfMan.get("savepath").c_str();
- }
- }
-
-#ifdef _WIN32_WCE
- if (dir[0] == 0)
- dir = _gameDataPath.c_str();
-#endif
-
- assert(dir);
-
- return dir;
-#endif
-}
-
const char *Engine::getGameDataPath() const {
return _gameDataPath.c_str();
}