Refactor console and scene structure; update resource paths and add configuration handling
This commit is contained in:
13
autoloads/config_file_handler.gd
Normal file
13
autoloads/config_file_handler.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
extends Node
|
||||
|
||||
var settings_config := ConfigFile.new()
|
||||
const SETTINGS_PATH := "user://settings.ini"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
if !FileAccess.file_exists(SETTINGS_PATH):
|
||||
settings_config.set_value("keybinding", "left", "A")
|
||||
|
||||
settings_config.save(SETTINGS_PATH)
|
||||
else:
|
||||
settings_config.load(SETTINGS_PATH)
|
1
autoloads/config_file_handler.gd.uid
Normal file
1
autoloads/config_file_handler.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dueoywjgtwv7m
|
Reference in New Issue
Block a user