diff options
author | Cameron Cawley | 2019-07-02 18:08:33 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-08-11 22:15:54 +0300 |
commit | aca627bec7b407790d78a64df984344ff454c15b (patch) | |
tree | 8aa18208291f43525b79606fa891cb564fa84892 /backends/saves/default | |
parent | 04c57babbc06dfba33a5597a83e80c27c1ba6be9 (diff) | |
download | scummvm-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.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()) { |