aboutsummaryrefslogtreecommitdiff
path: root/common/savefile.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-26 13:12:33 +0000
committerTorbjörn Andersson2006-04-26 13:12:33 +0000
commitc4c09fd8f1c94ef18c965be6a92ab7d08716b05f (patch)
tree318cb3fd6156aed4e5bb93d1af063f0c80382b67 /common/savefile.cpp
parent0aaa04899cf77abe98148882429440ca8804dfe2 (diff)
downloadscummvm-rg350-c4c09fd8f1c94ef18c965be6a92ab7d08716b05f.tar.gz
scummvm-rg350-c4c09fd8f1c94ef18c965be6a92ab7d08716b05f.tar.bz2
scummvm-rg350-c4c09fd8f1c94ef18c965be6a92ab7d08716b05f.zip
Use the joined filename for savegames, otherwise saves will be stored in the
current working directory instead of the save directory. svn-id: r22181
Diffstat (limited to 'common/savefile.cpp')
-rw-r--r--common/savefile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/savefile.cpp b/common/savefile.cpp
index 4378ce89dd..afc79df379 100644
--- a/common/savefile.cpp
+++ b/common/savefile.cpp
@@ -206,9 +206,9 @@ OutSaveFile *DefaultSaveFileManager::openForSaving(const char *filename) {
join_paths(filename, getSavePath(), buf, sizeof(buf));
#ifdef USE_ZLIB
- GzipSaveFile *sf = new GzipSaveFile(filename, true);
+ GzipSaveFile *sf = new GzipSaveFile(buf, true);
#else
- StdioSaveFile *sf = new StdioSaveFile(filename, true);
+ StdioSaveFile *sf = new StdioSaveFile(buf, true);
#endif
if (!sf->isOpen()) {
@@ -223,9 +223,9 @@ InSaveFile *DefaultSaveFileManager::openForLoading(const char *filename) {
join_paths(filename, getSavePath(), buf, sizeof(buf));
#ifdef USE_ZLIB
- GzipSaveFile *sf = new GzipSaveFile(filename, false);
+ GzipSaveFile *sf = new GzipSaveFile(buf, false);
#else
- StdioSaveFile *sf = new StdioSaveFile(filename, false);
+ StdioSaveFile *sf = new StdioSaveFile(buf, false);
#endif
if (!sf->isOpen()) {