aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2006-06-30 22:06:45 +0000
committerMax Horn2006-06-30 22:06:45 +0000
commit87d3e4fb0ec92d762035581ca65d31227b743ee4 (patch)
treecf623228241a9a99a59e6a0dcf122d68af8a24a8 /common
parentd71d5774ade7ba6568c816318fb57b6a53908337 (diff)
downloadscummvm-rg350-87d3e4fb0ec92d762035581ca65d31227b743ee4.tar.gz
scummvm-rg350-87d3e4fb0ec92d762035581ca65d31227b743ee4.tar.bz2
scummvm-rg350-87d3e4fb0ec92d762035581ca65d31227b743ee4.zip
Moved savefile.cpp to backends, to work around link error
svn-id: r23361
Diffstat (limited to 'common')
-rw-r--r--common/module.mk1
-rw-r--r--common/savefile.cpp63
2 files changed, 0 insertions, 64 deletions
diff --git a/common/module.mk b/common/module.mk
index b47d2afda4..f6b9f9dea8 100644
--- a/common/module.mk
+++ b/common/module.mk
@@ -11,7 +11,6 @@ MODULE_OBJS := \
str.o \
stream.o \
util.o \
- savefile.o \
system.o \
unzip.o
diff --git a/common/savefile.cpp b/common/savefile.cpp
deleted file mode 100644
index 567dcba516..0000000000
--- a/common/savefile.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2002-2006 The ScummVM project
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * $URL$
- * $Id$
- *
- */
-
-#include "common/stdafx.h"
-#include "common/util.h"
-#include "common/config-manager.h"
-#include "common/savefile.h"
-
-#include <stdio.h>
-#include <string.h>
-
-namespace Common {
-
-const char *SaveFileManager::getSavePath() const {
-
-#if defined(PALMOS_MODE) || defined(__PSP__)
- return SCUMMVM_SAVEPATH;
-#else
-
- const char *dir = NULL;
-
- // Try to use game specific savepath from config
- 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.getActiveDomainName());
- ConfMan.flushToDisk();
- dir = ConfMan.get("savepath").c_str();
- }
-
-#ifdef _WIN32_WCE
- if (dir[0] == 0)
- dir = ConfMan.get("path").c_str();
-#endif
-
- assert(dir);
-
- return dir;
-#endif
-}
-
-} // End of namespace Common