From 733668074a5e9e057b258f0b04dd2c8ef6887a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 4 Mar 2019 23:29:19 +0100 Subject: [PATCH] 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. (cherry picked from commit c0050d9295c1fd9b428782e49a60d67d83ef892b) --- editor/editor_settings.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 664a9512d0f..69ca78e178c 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -737,12 +737,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) {