aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/Arguments/ArgumentParser.tscn
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-25 23:35:16 +0200
committer Hop311 <hop3114@gmail.com>2023-05-25 23:35:16 +0200
commit9843807154aa70324c84692ce9d3b54414e2b5e0 (patch)
tree31d37e00cf6c010180fb3212b45ac5f70728cc8f /game/src/Autoload/Arguments/ArgumentParser.tscn
parentb493547fb8c77918306fe56b74b704284cf54931 (diff)
Added compatibility-mode command line argument
Diffstat (limited to 'game/src/Autoload/Arguments/ArgumentParser.tscn')
-rw-r--r--game/src/Autoload/Arguments/ArgumentParser.tscn32
1 files changed, 32 insertions, 0 deletions
diff --git a/game/src/Autoload/Arguments/ArgumentParser.tscn b/game/src/Autoload/Arguments/ArgumentParser.tscn
new file mode 100644
index 0000000..8fda8f1
--- /dev/null
+++ b/game/src/Autoload/Arguments/ArgumentParser.tscn
@@ -0,0 +1,32 @@
+[gd_scene load_steps=6 format=3 uid="uid://dayjmgc34tqo6"]
+
+[ext_resource type="Script" path="res://src/Autoload/Arguments/ArgumentParser.gd" id="1_pc7xr"]
+[ext_resource type="Script" path="res://src/Autoload/Arguments/ArgumentOption.gd" id="2_4hguj"]
+
+[sub_resource type="Resource" id="Resource_tq3y4"]
+script = ExtResource("2_4hguj")
+name = &"help"
+aliases = Array[StringName]([&"h"])
+type = 1
+description = "Displays help and quits."
+default_value = false
+
+[sub_resource type="Resource" id="Resource_j1to4"]
+script = ExtResource("2_4hguj")
+name = &"game-debug"
+aliases = Array[StringName]([&"d", &"-debug", &"-debug-mode"])
+type = 1
+description = "Start in debug mode."
+default_value = false
+
+[sub_resource type="Resource" id="Resource_tiax1"]
+script = ExtResource("2_4hguj")
+name = &"compatibility-mode"
+aliases = Array[StringName]([&"-compat"])
+type = 4
+description = "Load Victoria 2 assets from this path."
+default_value = ""
+
+[node name="ArgumentParser" type="Node"]
+script = ExtResource("1_pc7xr")
+option_array = Array[ExtResource("2_4hguj")]([SubResource("Resource_tq3y4"), SubResource("Resource_j1to4"), SubResource("Resource_tiax1")])