| 17 | } |
| 18 | |
| 19 | void OnMessage(const smi::MenuMessageContext &msg_ctx) { |
| 20 | auto ptr = g_MenuApplication->GetLayout<IMenuLayout>(); |
| 21 | if(ptr == nullptr) { |
| 22 | UL_LOG_WARN("[MenuApplication] Layout not ready, queuing message of type %d for later processing...", (u32)msg_ctx.msg); |
| 23 | g_PendingInitialMessageQueue.push(msg_ctx); |
| 24 | } |
| 25 | else { |
| 26 | UL_LOG_INFO("[MenuApplication] Forwarding message of type %d to layout...", (u32)msg_ctx.msg); |
| 27 | ptr->NotifyMessageContext(msg_ctx); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | MenuBgmEntry &MenuApplication::GetCurrentMenuBgm() { |
| 32 | switch(this->loaded_menu) { |
nothing calls this directly
no test coverage detected