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

Method user_DefaultKey

projects/uMenu/source/ul/menu/ui/ui_StartupMenuLayout.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace ul::menu::ui {
11
12 void StartupMenuLayout::user_DefaultKey(const AccountUid uid) {
13 // Note: menu loading is invoked below instead of here so that the main menu doesn't also register the button input which caused this action...
14 this->load_menu = true;
15 pu::audio::PlaySfx(this->user_select_sfx);
16 g_GlobalSettings.SetSelectedUser(uid);
17
18 auto &main_menu_lyt = g_MenuApplication->GetMainMenuLayout();
19 if(main_menu_lyt != nullptr) {
20 main_menu_lyt->NotifyNextReloadUserChanged();
21 }
22 g_MenuApplication->LoadMenu(MenuType::Main);
23 }
24
25 void StartupMenuLayout::create_DefaultKey() {
26 pu::audio::PlaySfx(this->user_create_sfx);

Callers

nothing calls this directly

Calls 3

SetSelectedUserMethod · 0.80
LoadMenuMethod · 0.80

Tested by

no test coverage detected