aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/Events/GameDebug.gd
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-06-03 20:37:10 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-06-03 20:37:10 +0200
commitcef940108fe15752c3ef66f43f5169403fa2f71d (patch)
treefe4de5a05830e3bddeae78f74f729503b7cee1e9 /game/src/Autoload/Events/GameDebug.gd
parent73e29d02e48739aba5ca5db1b9575c67e795400f (diff)
Reorganize the file structure of the files in `game/src`
Diffstat (limited to 'game/src/Autoload/Events/GameDebug.gd')
-rw-r--r--game/src/Autoload/Events/GameDebug.gd21
1 files changed, 0 insertions, 21 deletions
diff --git a/game/src/Autoload/Events/GameDebug.gd b/game/src/Autoload/Events/GameDebug.gd
deleted file mode 100644
index df7a23a..0000000
--- a/game/src/Autoload/Events/GameDebug.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-extends RefCounted
-
-# REQUIREMENTS:
-# * SS-56
-func _init():
- 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("openvic/debug/enabled", value)
- print("Set debug mode to: ", value)
-
-func is_debug_mode() -> bool:
- return ProjectSettings.get_setting("openvic/debug/enabled", false)