summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar german772023-11-03 23:43:41 -0600
committerGravatar german772023-11-05 09:34:16 -0600
commit507f360a81f6938a06643eab0df4dc24f3e89307 (patch)
tree734841bb7450b758610c37fa73877d3a45e3b0d0 /src
parentMerge pull request #11948 from german77/hard_ring (diff)
downloadyuzu-507f360a81f6938a06643eab0df4dc24f3e89307.tar.gz
yuzu-507f360a81f6938a06643eab0df4dc24f3e89307.tar.xz
yuzu-507f360a81f6938a06643eab0df4dc24f3e89307.zip
yuzu: Only store games in the recently played list
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/applets/applets.h24
-rw-r--r--src/yuzu/main.cpp11
2 files changed, 31 insertions, 4 deletions
diff --git a/src/core/hle/service/am/applets/applets.h b/src/core/hle/service/am/applets/applets.h
index f02bbc450..a6c322458 100644
--- a/src/core/hle/service/am/applets/applets.h
+++ b/src/core/hle/service/am/applets/applets.h
@@ -69,6 +69,30 @@ enum class AppletId : u32 {
69 MyPage = 0x1A, 69 MyPage = 0x1A,
70}; 70};
71 71
72enum class AppletProgramId : u64 {
73 QLaunch = 0x0100000000001000ull,
74 Auth = 0x0100000000001001ull,
75 Cabinet = 0x0100000000001002ull,
76 Controller = 0x0100000000001003ull,
77 DataErase = 0x0100000000001004ull,
78 Error = 0x0100000000001005ull,
79 NetConnect = 0x0100000000001006ull,
80 ProfileSelect = 0x0100000000001007ull,
81 SoftwareKeyboard = 0x0100000000001008ull,
82 MiiEdit = 0x0100000000001009ull,
83 Web = 0x010000000000100Aull,
84 Shop = 0x010000000000100Bull,
85 OverlayDisplay = 0x01000000000100Cull,
86 PhotoViewer = 0x01000000000100Dull,
87 Settings = 0x010000000000100Eull,
88 OfflineWeb = 0x010000000000100Full,
89 LoginShare = 0x0100000000001010ull,
90 WebAuth = 0x0100000000001011ull,
91 Starter = 0x0100000000001012ull,
92 MyPage = 0x0100000000001013ull,
93 MaxProgramId = 0x0100000000001FFFull,
94};
95
72enum class LibraryAppletMode : u32 { 96enum class LibraryAppletMode : u32 {
73 AllForeground = 0, 97 AllForeground = 0,
74 Background = 1, 98 Background = 1,
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index db9da6dc8..d1a53614c 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1908,7 +1908,10 @@ void GMainWindow::ConfigureFilesystemProvider(const std::string& filepath) {
1908void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t program_index, 1908void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t program_index,
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 StoreRecentFile(filename); // Put the filename on top of the list 1911
1912 if (program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) {
1913 StoreRecentFile(filename); // Put the filename on top of the list
1914 }
1912 1915
1913 // Save configurations 1916 // Save configurations
1914 UpdateUISettings(); 1917 UpdateUISettings();
@@ -4272,7 +4275,7 @@ void GMainWindow::OnToggleStatusBar() {
4272} 4275}
4273 4276
4274void GMainWindow::OnAlbum() { 4277void GMainWindow::OnAlbum() {
4275 constexpr u64 AlbumId = 0x010000000000100Dull; 4278 constexpr u64 AlbumId = static_cast<u64>(Service::AM::Applets::AppletProgramId::PhotoViewer);
4276 auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); 4279 auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
4277 if (!bis_system) { 4280 if (!bis_system) {
4278 QMessageBox::warning(this, tr("No firmware available"), 4281 QMessageBox::warning(this, tr("No firmware available"),
@@ -4295,7 +4298,7 @@ void GMainWindow::OnAlbum() {
4295} 4298}
4296 4299
4297void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { 4300void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
4298 constexpr u64 CabinetId = 0x0100000000001002ull; 4301 constexpr u64 CabinetId = static_cast<u64>(Service::AM::Applets::AppletProgramId::Cabinet);
4299 auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); 4302 auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
4300 if (!bis_system) { 4303 if (!bis_system) {
4301 QMessageBox::warning(this, tr("No firmware available"), 4304 QMessageBox::warning(this, tr("No firmware available"),
@@ -4319,7 +4322,7 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
4319} 4322}
4320 4323
4321void GMainWindow::OnMiiEdit() { 4324void GMainWindow::OnMiiEdit() {
4322 constexpr u64 MiiEditId = 0x0100000000001009ull; 4325 constexpr u64 MiiEditId = static_cast<u64>(Service::AM::Applets::AppletProgramId::MiiEdit);
4323 auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); 4326 auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
4324 if (!bis_system) { 4327 if (!bis_system) {
4325 QMessageBox::warning(this, tr("No firmware available"), 4328 QMessageBox::warning(this, tr("No firmware available"),