diff options
-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; |