diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-09-07 22:06:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 22:06:52 +0200 |
commit | 1013b3c21226f703caba954664628694aedde469 (patch) | |
tree | d32a9538df7fb451fbbcee91a11f88e5b6d3701a /game/src/Game/GameStart.gd | |
parent | 06816f3b7fd8dd7a2eba7031e0646c250077c96b (diff) | |
parent | 0e408c82a010aba96915753d56f83349256f4231 (diff) |
Merge pull request #153 from Spartan322/startup-hide
Diffstat (limited to 'game/src/Game/GameStart.gd')
-rw-r--r-- | game/src/Game/GameStart.gd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/game/src/Game/GameStart.gd b/game/src/Game/GameStart.gd index fa7568b..723086e 100644 --- a/game/src/Game/GameStart.gd +++ b/game/src/Game/GameStart.gd @@ -7,6 +7,15 @@ const SoundTabScene = preload("res://src/Game/Menu/OptionMenu/SoundTab.tscn") @export var loading_screen : LoadingScreen func _ready() -> void: + if ArgumentParser.get_argument(&"help"): + ArgumentParser._print_help() + # For some reason this doesn't get freed properly + # Godot will always quit before it frees the active StreamPlayback resource + # This hack fixes that + MusicConductor.queue_free() + get_tree().quit() + return + # Hack to ensure Sound Options load var sound_tab := SoundTabScene.instantiate() sound_tab.visible = false |