fix(esp): show boot splash before slow startup work

This commit is contained in:
liu weikai
2026-06-17 00:38:56 +08:00
parent c077505443
commit 8bd7488251
8 changed files with 97 additions and 26 deletions
+12 -3
View File
@@ -138,14 +138,23 @@ platform::ui::screen::Hooks buildScreenSleepHooks(const Hooks& hooks)
return runtime_hooks;
}
void prepareBootUi(bool waking_from_sleep)
void setBootLogLine(const char* line)
{
ui::boot::set_log_line(line);
present_boot_overlay_now();
}
void beginBootUi(bool waking_from_sleep, const char* initial_line)
{
if (!waking_from_sleep)
{
ui::boot::show();
ui::boot::set_log_line("Loading language packs...");
present_boot_overlay_now();
setBootLogLine(initial_line);
}
}
void prepareBootResources()
{
::ui::i18n::reload_language();
ui::feedback::init();
}