From e2b74f51400ab4bbf7bc788ed2129378e35911a4 Mon Sep 17 00:00:00 2001 From: dam Date: Sat, 9 Apr 2022 23:21:38 +0000 Subject: Automatically save database and option sets when loaded from non-base locations. --- logic/stage.gd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'logic/stage.gd') diff --git a/logic/stage.gd b/logic/stage.gd index 764ee52..a09f611 100644 --- a/logic/stage.gd +++ b/logic/stage.gd @@ -247,6 +247,9 @@ func load_option_sets(file_path: String = OPTION_SETS_FILE_PATH): _: printerr("Invalid option sets file extension: '%s'." % file_path.get_file()) return + + if file_path != OPTION_SETS_FILE_PATH: + save_option_sets() static func import_json(file_path: String) -> Dictionary: -- cgit v1.2.3