aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Autoload/Events.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-06-14 05:29:21 +0200
committer GitHub <noreply@github.com>2023-06-14 05:29:21 +0200
commit40cf0fa95e325f3bf875e42c11254da23192f506 (patch)
treee52a31ca0a52522c2ca08a6ddfdc1e8f9507c3dc /game/src/Game/Autoload/Events.gd
parentacda3217349a0ebdb8b48a3787cb15d8eb250e7c (diff)
parentcd7a5260d4d2791f98f284cf0bea905bda18cbe8 (diff)
Merge pull request #133 from Spartan322/argparser-corrections
Diffstat (limited to 'game/src/Game/Autoload/Events.gd')
-rw-r--r--game/src/Game/Autoload/Events.gd5
1 files changed, 1 insertions, 4 deletions
diff --git a/game/src/Game/Autoload/Events.gd b/game/src/Game/Autoload/Events.gd
index 786ece4..f979301 100644
--- a/game/src/Game/Autoload/Events.gd
+++ b/game/src/Game/Autoload/Events.gd
@@ -28,10 +28,7 @@ func load_events(loading_screen: LoadingScreen):
# into the mod's dir for a temporary fix)
# Usage: OpenVic --compatibility-mode <path>
- var compatibility_mode_path : String
- if ProjectSettings.has_setting(ArgumentParser.argument_setting_path):
- var arg_dictionary : Dictionary = ProjectSettings.get_setting(ArgumentParser.argument_setting_path)
- compatibility_mode_path = arg_dictionary.get(&"compatibility-mode", compatibility_mode_path)
+ var compatibility_mode_path : String = ArgumentParser.get_argument(&"compatibility-mode")
var start := Time.get_ticks_usec()