update network

This commit is contained in:
2026-02-04 16:31:18 +08:00
parent 4ccf789421
commit 08b0493c06
10 changed files with 203 additions and 22 deletions
+7 -1
View File
@@ -1,6 +1,12 @@
extends Control
## Main launcher scene script - orchestrates all launcher functionality
const Config = preload("config.gd")
const VersionChecker = preload("version_checker.gd")
const DownloadManager = preload("download_manager.gd")
const UpdateApplier = preload("update_applier.gd")
const NewsFetcher = preload("news_fetcher.gd")
# Child nodes (will be set up in _ready)
@onready var version_checker := $VersionChecker as VersionChecker
@onready var download_manager := $DownloadManager as DownloadManager
@@ -36,7 +42,7 @@ func _ready() -> void:
_set_state(LauncherState.CHECKING)
# Start checking for updates
await get_tree().create_timer(0.5).timeout # Small delay for UI to initialize
await get_tree().create_timer(0.5).timeout # Small delay for UI to initialize
version_checker.check_for_updates()
news_fetcher.fetch_news()