diff options
Diffstat (limited to 'backends/saves/default/default-saves.cpp')
-rw-r--r-- | backends/saves/default/default-saves.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp index 17e888175c..ee54557a77 100644 --- a/backends/saves/default/default-saves.cpp +++ b/backends/saves/default/default-saves.cpp @@ -63,7 +63,7 @@ DefaultSaveFileManager::DefaultSaveFileManager(const Common::String &defaultSave void DefaultSaveFileManager::checkPath(const Common::FSNode &dir) { clearError(); if (!dir.exists()) { - if (!dir.createDirectory()) { + if (!dir.createDirectoryRecursive()) { setError(Common::kPathDoesNotExist, "Failed to create directory '"+dir.getPath()+"'"); } } else if (!dir.isDirectory()) { |