Hello
I'm trying to make a key configuration menu with an ini file, I've already seen tutorials where they do it, but for some reason I can't do it.
I don't know much about it, so I hoped you could help me.
This is my script
extends Node
var filepath = "res://keybinds.ini"
var configfile
func _ready():
configfile = ConfigFile.new()
if configfile.load(filepath) == OK:
for key in configfile.get_section_keys("keybinds"):
var key_value = configfile.get_value("keybinds", key)
print(key, ":", key_value)
else:
print("CONFIG FILE NOT FOUND")
And always print CONFIG FILE NOT FOUND
Thanks for the help