diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-03-04 23:29:19 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-03-04 23:29:22 +0100 |
commit | c0050d9295c1fd9b428782e49a60d67d83ef892b (patch) | |
tree | 026f4c00e7b1f77b3c3fa23b988c914a22afe059 /editor | |
parent | 26c1d1aec8aeb8024bcb885906fcf011dc7aac68 (diff) |
Fix creating editor data, config and cache paths
We used to abort if the system-specific data folder (e.g. `~/.local`
or `%APPDATA%`) is missing, but the next code chunk actually creates
it with `make_dir_recursive` if missing.
Fixes #26598.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_settings.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 741a210950..94473cb989 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -780,12 +780,6 @@ void EditorSettings::create() { // Validate/create data dir and subdirectories dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); - if (dir->change_dir(data_path) != OK) { - ERR_PRINT("Cannot find path for data directory!"); - memdelete(dir); - goto fail; - } - if (dir->change_dir(data_dir) != OK) { dir->make_dir_recursive(data_dir); if (dir->change_dir(data_dir) != OK) { |