diff options
author | Nicolas Bacca | 2004-05-30 12:30:29 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-05-30 12:30:29 +0000 |
commit | 37b311d628c29a9a52289075aec8d94ef3e87811 (patch) | |
tree | 26a506a4b268545f9df106718d77c8f926c7009d /base | |
parent | 4ceb84c6430c2fa016259dc0717cce8f5e4b2bc9 (diff) | |
download | scummvm-rg350-37b311d628c29a9a52289075aec8d94ef3e87811.tar.gz scummvm-rg350-37b311d628c29a9a52289075aec8d94ef3e87811.tar.bz2 scummvm-rg350-37b311d628c29a9a52289075aec8d94ef3e87811.zip |
Remove old savePath handling on WinCE
svn-id: r13900
Diffstat (limited to 'base')
-rw-r--r-- | base/engine.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/base/engine.cpp b/base/engine.cpp index c1f105a74e..2dc6b807eb 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -54,15 +54,13 @@ Engine::~Engine() { const char *Engine::getSavePath() const { -#ifdef _WIN32_WCE - return _gameDataPath.c_str(); -#elif defined(__PALM_OS__) +#if defined(__PALM_OS__) return SCUMMVM_SAVEPATH; #else const char *dir = NULL; -#if !defined(MACOS_CARBON) +#if !defined(MACOS_CARBON) && !defined(_WIN32_WCE) dir = getenv("SCUMMVM_SAVEPATH"); #endif @@ -70,6 +68,11 @@ const char *Engine::getSavePath() const { if (!dir || dir[0] == 0) dir = ConfMan.get("savepath").c_str(); +#ifdef _WIN32_WCE + if (dir[0] == 0) + dir = _gameDataPath.c_str(); +#endif + assert(dir); return dir; |