Compare commits

...

2 commits

Author SHA1 Message Date
44f490b00a Fix configuration not being inited upon first boot 2024-11-23 20:37:39 -06:00
16e68e2b16 fix export 2024-11-23 19:30:05 -06:00
3 changed files with 4 additions and 3 deletions

View file

@ -7,7 +7,7 @@ advanced_options=false
dedicated_server=false dedicated_server=false
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter="*.xml, *.png"
exclude_filter="" exclude_filter=""
export_path="../export/FunkPanion/FunkPanion-win.zip" export_path="../export/FunkPanion/FunkPanion-win.zip"
encryption_include_filters="" encryption_include_filters=""

View file

@ -11,7 +11,7 @@ config_version=5
[application] [application]
config/name="FunkPanion" config/name="FunkPanion"
config/version="0.9.0" config/version="0.9.1"
run/main_scene="res://scenes/main.tscn" run/main_scene="res://scenes/main.tscn"
run/disable_stderr=true run/disable_stderr=true
config/use_custom_user_dir=true config/use_custom_user_dir=true

View file

@ -3,7 +3,6 @@ extends Config
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready() -> void: func _ready() -> void:
self.clone_config(Config.new_clear())
load_from_file() load_from_file()
func bind_keys() -> void: func bind_keys() -> void:
@ -52,6 +51,8 @@ func load_from_file() -> void:
if err != OK: if err != OK:
return return
self.clone_config(Config.new_clear())
for key in config.get_section_keys("FunkPanion"): for key in config.get_section_keys("FunkPanion"):
var value = config.get_value("FunkPanion", key) var value = config.get_value("FunkPanion", key)