summaryrefslogtreecommitdiffstats
path: root/src/yuzu
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-05 19:15:07 +0100
committerGitHub <noreply@github.com>2023-11-05 19:15:07 +0100
commit626916e9a48a9bbc5f09968d89d378891ffb3809 (patch)
treeeecdc0b962b101c851493102d1d0f49674573316 /src/yuzu
parentMerge pull request #11965 from german77/color (diff)
parentyuzu: Only store games in the recently played list (diff)
downloadyuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.tar
yuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.tar.gz
yuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.tar.bz2
yuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.tar.lz
yuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.tar.xz
yuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.tar.zst
yuzu-626916e9a48a9bbc5f09968d89d378891ffb3809.zip
Diffstat (limited to 'src/yuzu')
-rw-r--r--src/yuzu/main.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 91aba118a..ce0c71021 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1908,7 +1908,10 @@ void GMainWindow::ConfigureFilesystemProvider(const std::string& filepath) {
void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t program_index,
StartGameType type, AmLaunchType launch_type) {
LOG_INFO(Frontend, "yuzu starting...");
- StoreRecentFile(filename); // Put the filename on top of the list
+
+ if (program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) {
+ StoreRecentFile(filename); // Put the filename on top of the list
+ }
// Save configurations
UpdateUISettings();
@@ -4273,7 +4276,7 @@ void GMainWindow::OnToggleStatusBar() {
}
void GMainWindow::OnAlbum() {
- constexpr u64 AlbumId = 0x010000000000100Dull;
+ constexpr u64 AlbumId = static_cast<u64>(Service::AM::Applets::AppletProgramId::PhotoViewer);
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
if (!bis_system) {
QMessageBox::warning(this, tr("No firmware available"),
@@ -4296,7 +4299,7 @@ void GMainWindow::OnAlbum() {
}
void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
- constexpr u64 CabinetId = 0x0100000000001002ull;
+ constexpr u64 CabinetId = static_cast<u64>(Service::AM::Applets::AppletProgramId::Cabinet);
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
if (!bis_system) {
QMessageBox::warning(this, tr("No firmware available"),
@@ -4320,7 +4323,7 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
}
void GMainWindow::OnMiiEdit() {
- constexpr u64 MiiEditId = 0x0100000000001009ull;
+ constexpr u64 MiiEditId = static_cast<u64>(Service::AM::Applets::AppletProgramId::MiiEdit);
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
if (!bis_system) {
QMessageBox::warning(this, tr("No firmware available"),