From 578eb8c332810656842f72e0bb94bb0d4dcb9f5e Mon Sep 17 00:00:00 2001 From: Hop311 Date: Tue, 16 May 2023 22:49:52 +0100 Subject: Changed from OpenVic2 to OpenVic --- game/src/Autoload/Events/GameDebug.gd | 4 ++-- game/src/Autoload/Events/Options.gd | 2 +- game/src/Autoload/SaveManager.gd | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'game/src/Autoload') diff --git a/game/src/Autoload/Events/GameDebug.gd b/game/src/Autoload/Events/GameDebug.gd index 4e8931f..df7a23a 100644 --- a/game/src/Autoload/Events/GameDebug.gd +++ b/game/src/Autoload/Events/GameDebug.gd @@ -14,8 +14,8 @@ func _init(): set_debug_mode(true) func set_debug_mode(value : bool) -> void: - ProjectSettings.set_setting("openvic2/debug/enabled", value) + ProjectSettings.set_setting("openvic/debug/enabled", value) print("Set debug mode to: ", value) func is_debug_mode() -> bool: - return ProjectSettings.get_setting("openvic2/debug/enabled", false) + return ProjectSettings.get_setting("openvic/debug/enabled", false) diff --git a/game/src/Autoload/Events/Options.gd b/game/src/Autoload/Events/Options.gd index 6b9e089..fbeccef 100644 --- a/game/src/Autoload/Events/Options.gd +++ b/game/src/Autoload/Events/Options.gd @@ -16,7 +16,7 @@ func save_settings_to_file() -> void: func try_reset_settings() -> void: reset_settings.emit() -const settings_file_path_setting : String = "openvic2/settings/settings_file_path" +const settings_file_path_setting : String = "openvic/settings/settings_file_path" const settings_file_path_default : String = "user://settings.cfg" var _settings_file_path : String = ProjectSettings.get_setting(settings_file_path_setting, settings_file_path_default) diff --git a/game/src/Autoload/SaveManager.gd b/game/src/Autoload/SaveManager.gd index c653b2c..fb7806b 100644 --- a/game/src/Autoload/SaveManager.gd +++ b/game/src/Autoload/SaveManager.gd @@ -2,7 +2,7 @@ extends Node # Requirements # * FS-28 -const save_directory_setting := &"openvic2/data/saves_directory" +const save_directory_setting := &"openvic/data/saves_directory" var current_save : SaveResource var current_session_tag : StringName -- cgit v1.2.3-56-ga3b1