refactor: argument (#33)

* refactor(config): remove TOML config loading and replace is_client with host_game

* feat(network): add net_error_message helper and use for error logging
This commit is contained in:
zhenyan121
2026-07-17 09:00:26 +08:00
committed by GitHub
parent d62b310a21
commit d6e1e4a50e
10 changed files with 150 additions and 59 deletions

View File

@@ -98,7 +98,9 @@ void MainMenuUIManager::init() {
player_name.set_text(
tr("menu.main.player_name",
arg("name", m_scene.scene_manager().app().argument().player)));
arg("name",
m_scene.scene_manager().app().argument().player.value_or(
"Unknown"))));
auto& version = info_layout.add_child<Label>();
version.set_scale(SCALE);