From 262f14caeb1f5fe126f1c1fcfe8992ac196b4f25 Mon Sep 17 00:00:00 2001 From: Nordup Date: Sat, 16 Aug 2025 00:39:41 +0700 Subject: [PATCH] print app info --- app/scripts/debug_log/debug_log.gd | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/scripts/debug_log/debug_log.gd b/app/scripts/debug_log/debug_log.gd index 42a7a5b..c8607c0 100644 --- a/app/scripts/debug_log/debug_log.gd +++ b/app/scripts/debug_log/debug_log.gd @@ -1,9 +1,14 @@ extends RichTextLabel +const APP_NAME: String = "TheGates" +const WEB_SITE: String = "https://thegates.io" + func _ready() -> void: Debug.logged.connect(add_log) meta_clicked.connect(on_meta_clicked) + + print_app_info() func add_log(msg: String) -> void: @@ -12,3 +17,9 @@ func add_log(msg: String) -> void: func on_meta_clicked(meta) -> void: OS.shell_open(str(meta)) + + +func print_app_info() -> void: + var version: String = ProjectSettings.get_setting("application/config/version") + var platform: String = OS.get_name() + Debug.logr("%s %s v%s - [url]%s[/url]" % [APP_NAME, platform, version, WEB_SITE])