| 10 | namespace 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); |
nothing calls this directly
no test coverage detected