diff options
| author | Bojidar Marinov | 2017-02-09 12:26:18 +0200 |
|---|---|---|
| committer | Bojidar Marinov | 2017-02-09 12:26:18 +0200 |
| commit | 27bb6b5282ee62ade086f840ec78ca65d31c081d (patch) | |
| tree | f9bab41a2f16f0ffddeb48ca8273b57879be9add /tools/editor/editor_settings.cpp | |
| parent | b19c9bd1983b8c72621595b7c22daade4ebf6625 (diff) | |
| download | godot-27bb6b5282ee62ade086f840ec78ca65d31c081d.tar.gz godot-27bb6b5282ee62ade086f840ec78ca65d31c081d.tar.zst godot-27bb6b5282ee62ade086f840ec78ca65d31c081d.zip | |
Make _sc_ files work like ._sc_, fixes #7762
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/editor_settings.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp index 1cdc42654..dcca89a27 100644 --- a/tools/editor/editor_settings.cpp +++ b/tools/editor/editor_settings.cpp @@ -242,13 +242,20 @@ void EditorSettings::create() { String exe_path = OS::get_singleton()->get_executable_path().get_base_dir(); DirAccess* d = DirAccess::create_for_path(exe_path); + bool self_contained = false; if (d->file_exists(exe_path + "/._sc_")) { + self_contained = true; + extra_config->load(exe_path + "/._sc_"); + } else if (d->file_exists(exe_path + "/_sc_")) { + self_contained = true; + extra_config->load(exe_path + "/_sc_"); + } + if (self_contained) { // editor is self contained config_path = exe_path; config_dir = "editor_data"; - extra_config->load(exe_path + "/._sc_"); } else { if (OS::get_singleton()->has_environment("APPDATA")) { |
