diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-09-28 23:01:25 -0600 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-01 11:38:30 -0600 |
commit | ae5c134ac621c07d21eb7aec66de354792cee3ca (patch) | |
tree | ff7de0a2811b2d08dfac9af7ac55e2f4c63a48ed /src/yuzu/main.cpp | |
parent | 03d4fffc702a5f36b96c995d7f2073766131693c (diff) |
service: am: Set push in arguments according to the launched applet
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 0879d6168..ec27361d5 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -2122,6 +2122,8 @@ void GMainWindow::OnEmulationStopped() { OnTasStateChanged(); render_window->FinalizeCamera(); + system->GetAppletManager().SetCurrentAppletId(Service::AM::Applets::AppletId::None); + // Enable all controllers system->HIDCore().SetSupportedStyleTag({Core::HID::NpadStyleSet::All}); @@ -4169,6 +4171,9 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { return; } + system->GetAppletManager().SetCurrentAppletId(Service::AM::Applets::AppletId::Cabinet); + system->GetAppletManager().SetCabinetMode(mode); + const auto filename = QString::fromStdString(cabinet_nca->GetFullPath()); UISettings::values.roms_path = QFileInfo(filename).path(); BootGame(filename); @@ -4190,6 +4195,8 @@ void GMainWindow::OnMiiEdit() { return; } + system->GetAppletManager().SetCurrentAppletId(Service::AM::Applets::AppletId::MiiEdit); + const auto filename = QString::fromStdString((mii_applet_nca->GetFullPath())); UISettings::values.roms_path = QFileInfo(filename).path(); BootGame(filename); |