summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp9
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
1909 StartGameType type, AmLaunchType launch_type) { 1909 StartGameType type, AmLaunchType launch_type) {
1910 LOG_INFO(Frontend, "yuzu starting..."); 1910 LOG_INFO(Frontend, "yuzu starting...");
1911 1911
1912 if (program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) { 1912 if (program_id == 0 ||
1913 program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) {
1913 StoreRecentFile(filename); // Put the filename on top of the list 1914 StoreRecentFile(filename); // Put the filename on top of the list
1914 } 1915 }
1915 1916
@@ -4295,7 +4296,7 @@ void GMainWindow::OnAlbum() {
4295 4296
4296 const auto filename = QString::fromStdString(album_nca->GetFullPath()); 4297 const auto filename = QString::fromStdString(album_nca->GetFullPath());
4297 UISettings::values.roms_path = QFileInfo(filename).path(); 4298 UISettings::values.roms_path = QFileInfo(filename).path();
4298 BootGame(filename); 4299 BootGame(filename, AlbumId);
4299} 4300}
4300 4301
4301void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { 4302void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
@@ -4319,7 +4320,7 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
4319 4320
4320 const auto filename = QString::fromStdString(cabinet_nca->GetFullPath()); 4321 const auto filename = QString::fromStdString(cabinet_nca->GetFullPath());
4321 UISettings::values.roms_path = QFileInfo(filename).path(); 4322 UISettings::values.roms_path = QFileInfo(filename).path();
4322 BootGame(filename); 4323 BootGame(filename, CabinetId);
4323} 4324}
4324 4325
4325void GMainWindow::OnMiiEdit() { 4326void GMainWindow::OnMiiEdit() {
@@ -4342,7 +4343,7 @@ void GMainWindow::OnMiiEdit() {
4342 4343
4343 const auto filename = QString::fromStdString((mii_applet_nca->GetFullPath())); 4344 const auto filename = QString::fromStdString((mii_applet_nca->GetFullPath()));
4344 UISettings::values.roms_path = QFileInfo(filename).path(); 4345 UISettings::values.roms_path = QFileInfo(filename).path();
4345 BootGame(filename); 4346 BootGame(filename, MiiEditId);
4346} 4347}
4347 4348
4348void GMainWindow::OnCaptureScreenshot() { 4349void GMainWindow::OnCaptureScreenshot() {