From 357900e87ecae9ed5a8cbfae5368b02cf680d8eb Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 26 Jan 2022 18:57:16 +0100 Subject: [PATCH] Create the settings file with the .tres extension so it's not saved as binary. --- game/addons/data_manager/plugin.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/addons/data_manager/plugin.gd b/game/addons/data_manager/plugin.gd index 78e825cc..5f3a68b2 100644 --- a/game/addons/data_manager/plugin.gd +++ b/game/addons/data_manager/plugin.gd @@ -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")