aboutsummaryrefslogtreecommitdiff
path: root/backends/saves/default
diff options
context:
space:
mode:
authorCameron Cawley2019-07-02 18:08:33 +0100
committerFilippos Karapetis2019-08-11 22:15:54 +0300
commitaca627bec7b407790d78a64df984344ff454c15b (patch)
tree8aa18208291f43525b79606fa891cb564fa84892 /backends/saves/default
parent04c57babbc06dfba33a5597a83e80c27c1ba6be9 (diff)
downloadscummvm-rg350-aca627bec7b407790d78a64df984344ff454c15b.tar.gz
scummvm-rg350-aca627bec7b407790d78a64df984344ff454c15b.tar.bz2
scummvm-rg350-aca627bec7b407790d78a64df984344ff454c15b.zip
COMMON: Implement FSNode::createDirectoryRecursive()
Diffstat (limited to 'backends/saves/default')
-rw-r--r--backends/saves/default/default-saves.cpp2
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()) {