diff options
author | german77 <juangerman-13@hotmail.com> | 2023-11-11 17:12:11 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-11-11 17:14:11 +0100 |
commit | 0c032d3f2fca46569562d968b3edb37d972d0975 (patch) | |
tree | 8d936c62c60e12a428d4136348a5f1b97606247f | |
parent | Merge pull request #11914 from liamwhite/newer-kpagetable (diff) | |
download | yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.tar yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.tar.gz yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.tar.bz2 yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.tar.lz yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.tar.xz yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.tar.zst yuzu-0c032d3f2fca46569562d968b3edb37d972d0975.zip |
-rw-r--r-- | src/yuzu/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index ce0c71021..d2a054eaa 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1909,7 +1909,8 @@ void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t StartGameType type, AmLaunchType launch_type) { LOG_INFO(Frontend, "yuzu starting..."); - if (program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) { + if (program_id == 0 || + program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) { StoreRecentFile(filename); // Put the filename on top of the list } @@ -4295,7 +4296,7 @@ void GMainWindow::OnAlbum() { const auto filename = QString::fromStdString(album_nca->GetFullPath()); UISettings::values.roms_path = QFileInfo(filename).path(); - BootGame(filename); + BootGame(filename, AlbumId); } void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { @@ -4319,7 +4320,7 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { const auto filename = QString::fromStdString(cabinet_nca->GetFullPath()); UISettings::values.roms_path = QFileInfo(filename).path(); - BootGame(filename); + BootGame(filename, CabinetId); } void GMainWindow::OnMiiEdit() { @@ -4342,7 +4343,7 @@ void GMainWindow::OnMiiEdit() { const auto filename = QString::fromStdString((mii_applet_nca->GetFullPath())); UISettings::values.roms_path = QFileInfo(filename).path(); - BootGame(filename); + BootGame(filename, MiiEditId); } void GMainWindow::OnCaptureScreenshot() { |