From 876e738dce6e3725ce28d8caf1520e71edfe09f0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 27 Nov 2004 00:26:11 +0000 Subject: 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 --- base/engine.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'base/engine.cpp') 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(); } -- cgit v1.2.3