aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/GameDebug.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-28 20:08:58 +0200
committer Hop311 <hop3114@gmail.com>2023-04-28 20:08:58 +0200
commit5022ec800b096e9a85d6ef07ca4b652abb8625ee (patch)
tree899b97479f6a1aabbfe352747bea162ce5720193 /game/src/Autoload/GameDebug.gd
parent2455806f52f0133e5bd5e4997589c5ce4fe99b2c (diff)
Terrain channel for provinces + generated minimap
Diffstat (limited to 'game/src/Autoload/GameDebug.gd')
-rw-r--r--game/src/Autoload/GameDebug.gd20
1 files changed, 0 insertions, 20 deletions
diff --git a/game/src/Autoload/GameDebug.gd b/game/src/Autoload/GameDebug.gd
deleted file mode 100644
index 6f10bf5..0000000
--- a/game/src/Autoload/GameDebug.gd
+++ /dev/null
@@ -1,20 +0,0 @@
-extends Node
-
-# REQUIREMENTS:
-# * SS-56
-func _ready():
- for engine_args in OS.get_cmdline_args():
- match(engine_args):
- "--game-debug":
- set_debug_mode(true)
-
- for engine_args in OS.get_cmdline_user_args():
- match(engine_args):
- "--game-debug", "-d", "--debug", "--debug-mode":
- set_debug_mode(true)
-
-func set_debug_mode(value : bool) -> void:
- ProjectSettings.set_setting("openvic2/debug/enabled", value)
-
-func is_debug_mode() -> bool:
- return ProjectSettings.get_setting("openvic2/debug/enabled", false)