diff options
author | Torbjörn Andersson | 2006-04-26 13:12:33 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-04-26 13:12:33 +0000 |
commit | c4c09fd8f1c94ef18c965be6a92ab7d08716b05f (patch) | |
tree | 318cb3fd6156aed4e5bb93d1af063f0c80382b67 | |
parent | 0aaa04899cf77abe98148882429440ca8804dfe2 (diff) | |
download | scummvm-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
-rw-r--r-- | common/savefile.cpp | 8 |
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()) { |