mirror of
https://github.com/godotengine/godot.git
synced 2025-01-05 17:50:55 +00:00
Editor settings file is now versioned
This commit is contained in:
parent
b7d69c2444
commit
7474fc133a
@ -47,6 +47,9 @@
|
||||
#include "io/compression.h"
|
||||
#include "os/keyboard.h"
|
||||
|
||||
|
||||
#
|
||||
|
||||
Ref<EditorSettings> EditorSettings::singleton=NULL;
|
||||
|
||||
EditorSettings *EditorSettings::get_singleton() {
|
||||
@ -240,6 +243,7 @@ void EditorSettings::create() {
|
||||
|
||||
String exe_path = OS::get_singleton()->get_executable_path().get_base_dir();
|
||||
DirAccess* d = DirAccess::create_for_path(exe_path);
|
||||
|
||||
if (d->file_exists(exe_path + "/._sc_")) {
|
||||
|
||||
// editor is self contained
|
||||
@ -325,11 +329,11 @@ void EditorSettings::create() {
|
||||
// path at least is validated, so validate config file
|
||||
|
||||
|
||||
config_file_path = config_path+"/"+config_dir+"/editor_config.tres";
|
||||
config_file_path = config_path+"/"+config_dir+"/editor_settings-3.tres";
|
||||
|
||||
String open_path = config_file_path;
|
||||
|
||||
if (!dir->file_exists("editor_config.tres")) {
|
||||
if (!dir->file_exists("editor_settings-3.tres")) {
|
||||
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user