mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Create the settings file with the .tres extension so it's not saved as binary.
This commit is contained in:
parent
965ecd5f18
commit
357900e87e
@ -52,9 +52,9 @@ func load_settings() -> void:
|
||||
|
||||
var dir : Directory = Directory.new()
|
||||
|
||||
if !dir.file_exists("res://addons/data_manager/_data/settings.res"):
|
||||
if !dir.file_exists("res://addons/data_manager/_data/settings.tres"):
|
||||
settings = DataManagerAddonSettings.new()
|
||||
|
||||
ResourceSaver.save("res://addons/data_manager/_data/settings.res", settings)
|
||||
ResourceSaver.save("res://addons/data_manager/_data/settings.tres", settings)
|
||||
else:
|
||||
settings = ResourceLoader.load("res://addons/data_manager/_data/settings.res")
|
||||
settings = ResourceLoader.load("res://addons/data_manager/_data/settings.tres")
|
||||
|
Loading…
Reference in New Issue
Block a user