diff options
author | Alexander Tkachev | 2016-07-03 12:11:45 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | acce1c89ab2b9b362fa9f2fc32ae813c62038705 (patch) | |
tree | a04224f9cbb08d8fdb5458e07a586dd56a5f5cd9 /common | |
parent | f3a392359be2f6d05bac107a5f7bd168c178e428 (diff) | |
download | scummvm-rg350-acce1c89ab2b9b362fa9f2fc32ae813c62038705.tar.gz scummvm-rg350-acce1c89ab2b9b362fa9f2fc32ae813c62038705.tar.bz2 scummvm-rg350-acce1c89ab2b9b362fa9f2fc32ae813c62038705.zip |
CLOUD: Fix saves sync
Tested that on actual unix system and found out a few minor bugs related
to paths.
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp index 52b66bd2f4..5f3402e9ed 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -160,6 +160,7 @@ bool DumpFile::open(const String &filename, bool createPath) { if (filename[i] == '/' || filename[i] == '\\') { Common::String subpath = filename; subpath.erase(i); + if (subpath.empty()) continue; AbstractFSNode *node = g_system->getFilesystemFactory()->makeFileNodePath(subpath); if (node->exists()) continue; if (!node->create(true)) warning("DumpFile: unable to create directories from path prefix"); |