From acce1c89ab2b9b362fa9f2fc32ae813c62038705 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Sun, 3 Jul 2016 12:11:45 +0600 Subject: CLOUD: Fix saves sync Tested that on actual unix system and found out a few minor bugs related to paths. --- common/file.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'common') 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"); -- cgit v1.2.3