MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / OnMessage

Function OnMessage

projects/uMenu/source/ul/menu/ui/ui_MenuApplication.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

NotifyMessageContextMethod · 0.80

Tested by

no test coverage detected