diff options
author | Max Horn | 2003-10-10 10:42:54 +0000 |
---|---|---|
committer | Max Horn | 2003-10-10 10:42:54 +0000 |
commit | eece292342f641dbb394496feed3fc7a3d6782f1 (patch) | |
tree | 1733bed17f5291758b070c1068a3e8b5760cecf8 /base | |
parent | ed5948272dc3f91c793f64f6c82fc1a4b87173ce (diff) | |
download | scummvm-rg350-eece292342f641dbb394496feed3fc7a3d6782f1.tar.gz scummvm-rg350-eece292342f641dbb394496feed3fc7a3d6782f1.tar.bz2 scummvm-rg350-eece292342f641dbb394496feed3fc7a3d6782f1.zip |
rearranged code a bit
svn-id: r10715
Diffstat (limited to 'base')
-rw-r--r-- | base/engine.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/base/engine.cpp b/base/engine.cpp index 567def93cd..1445c8d6b2 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -47,14 +47,15 @@ Engine::~Engine() { } const char *Engine::getSavePath() const { - const char *dir = NULL; #ifdef _WIN32_WCE - dir = _gameDataPath; + return _gameDataPath; #elif defined(__PALM_OS__) - dir = SCUMMVM_SAVEPATH; + return SCUMMVM_SAVEPATH; #else + const char *dir = NULL; + #if !defined(MACOS_CARBON) dir = getenv("SCUMMVM_SAVEPATH"); #endif @@ -66,9 +67,9 @@ const char *Engine::getSavePath() const { // If no save path was specified, use no directory prefix if (dir == NULL) dir = ""; -#endif return dir; +#endif } void NORETURN CDECL error(const char *s, ...) { |