remove config load settings

This commit is contained in:
Nordup 2023-03-30 10:44:21 +03:00
parent 5b597cf055
commit b167b500c0
2 changed files with 2 additions and 15 deletions

View file

@ -17,8 +17,8 @@ script_encryption_key=""
[preset.0.options]
custom_template/debug="/home/nordup/projects/godot/the-gates-folder/godot-the-gates/bin/godot.linuxbsd.template_debug.x86_64"
custom_template/release=""
custom_template/debug="/home/nordup/projects/godot/the-gates-folder/the-gates/bin/godot.linuxbsd.template_debug.x86_64"
custom_template/release="/home/nordup/projects/godot/the-gates-folder/the-gates/bin/godot.linuxbsd.template_release.x86_64"
debug/export_console_script=2
binary_format/embed_pck=true
texture_format/bptc=false

View file

@ -16,7 +16,6 @@ func _init(path: String) -> void:
func load_config() -> void:
load_autoloads()
load_input_map()
load_settings()
func unload_config() -> void:
@ -54,15 +53,3 @@ func unload_input_map() -> void:
if actions == null: return
for action_name in actions: Input.action_release(action_name)
InputMap.load_from_project_settings()
func load_settings() -> void:
var sections := get_sections()
for section in sections:
if section in ["application"]: continue
Debug.logclr(section, Color.GREEN)
var keys := get_section_keys(section)
for key in keys:
var value = get_value(section, key)
ProjectSettings.set_setting(key, value)
Debug.logclr(ProjectSettings.get_setting(key), Color.DARK_SEA_GREEN)