diff options
| -rw-r--r-- | src/core/hle/service/am/applets/applets.h | 24 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 11 |
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 | ||
| 72 | enum 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 | |||
| 72 | enum class LibraryAppletMode : u32 { | 96 | enum 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 91aba118a..ce0c71021 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1908,7 +1908,10 @@ void GMainWindow::ConfigureFilesystemProvider(const std::string& filepath) { | |||
| 1908 | void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t program_index, | 1908 | void 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(); |
| @@ -4273,7 +4276,7 @@ void GMainWindow::OnToggleStatusBar() { | |||
| 4273 | } | 4276 | } |
| 4274 | 4277 | ||
| 4275 | void GMainWindow::OnAlbum() { | 4278 | void GMainWindow::OnAlbum() { |
| 4276 | constexpr u64 AlbumId = 0x010000000000100Dull; | 4279 | constexpr u64 AlbumId = static_cast<u64>(Service::AM::Applets::AppletProgramId::PhotoViewer); |
| 4277 | auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); | 4280 | auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); |
| 4278 | if (!bis_system) { | 4281 | if (!bis_system) { |
| 4279 | QMessageBox::warning(this, tr("No firmware available"), | 4282 | QMessageBox::warning(this, tr("No firmware available"), |
| @@ -4296,7 +4299,7 @@ void GMainWindow::OnAlbum() { | |||
| 4296 | } | 4299 | } |
| 4297 | 4300 | ||
| 4298 | void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { | 4301 | void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { |
| 4299 | constexpr u64 CabinetId = 0x0100000000001002ull; | 4302 | constexpr u64 CabinetId = static_cast<u64>(Service::AM::Applets::AppletProgramId::Cabinet); |
| 4300 | auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); | 4303 | auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); |
| 4301 | if (!bis_system) { | 4304 | if (!bis_system) { |
| 4302 | QMessageBox::warning(this, tr("No firmware available"), | 4305 | QMessageBox::warning(this, tr("No firmware available"), |
| @@ -4320,7 +4323,7 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) { | |||
| 4320 | } | 4323 | } |
| 4321 | 4324 | ||
| 4322 | void GMainWindow::OnMiiEdit() { | 4325 | void GMainWindow::OnMiiEdit() { |
| 4323 | constexpr u64 MiiEditId = 0x0100000000001009ull; | 4326 | constexpr u64 MiiEditId = static_cast<u64>(Service::AM::Applets::AppletProgramId::MiiEdit); |
| 4324 | auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); | 4327 | auto bis_system = system->GetFileSystemController().GetSystemNANDContents(); |
| 4325 | if (!bis_system) { | 4328 | if (!bis_system) { |
| 4326 | QMessageBox::warning(this, tr("No firmware available"), | 4329 | QMessageBox::warning(this, tr("No firmware available"), |