From b167b500c0f4ae068e4ade46d42f236761a9b188 Mon Sep 17 00:00:00 2001 From: Nordup Date: Thu, 30 Mar 2023 10:44:21 +0300 Subject: [PATCH] remove config load settings --- project/export_presets.cfg | 4 ++-- project/the_gates/scripts/loading/config_godot.gd | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/project/export_presets.cfg b/project/export_presets.cfg index 1ee6d93..3a43152 100644 --- a/project/export_presets.cfg +++ b/project/export_presets.cfg @@ -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 diff --git a/project/the_gates/scripts/loading/config_godot.gd b/project/the_gates/scripts/loading/config_godot.gd index c98f44e..a0680b6 100644 --- a/project/the_gates/scripts/loading/config_godot.gd +++ b/project/the_gates/scripts/loading/config_godot.gd @@ -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)