mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-26 20:55:44 +01:00
Merge pull request #11961 from german77/recent
yuzu: Only store games in the recently played list
This commit is contained in:
commit
626916e9a4
@ -69,6 +69,30 @@ enum class AppletId : u32 {
|
|||||||
MyPage = 0x1A,
|
MyPage = 0x1A,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum class AppletProgramId : u64 {
|
||||||
|
QLaunch = 0x0100000000001000ull,
|
||||||
|
Auth = 0x0100000000001001ull,
|
||||||
|
Cabinet = 0x0100000000001002ull,
|
||||||
|
Controller = 0x0100000000001003ull,
|
||||||
|
DataErase = 0x0100000000001004ull,
|
||||||
|
Error = 0x0100000000001005ull,
|
||||||
|
NetConnect = 0x0100000000001006ull,
|
||||||
|
ProfileSelect = 0x0100000000001007ull,
|
||||||
|
SoftwareKeyboard = 0x0100000000001008ull,
|
||||||
|
MiiEdit = 0x0100000000001009ull,
|
||||||
|
Web = 0x010000000000100Aull,
|
||||||
|
Shop = 0x010000000000100Bull,
|
||||||
|
OverlayDisplay = 0x01000000000100Cull,
|
||||||
|
PhotoViewer = 0x01000000000100Dull,
|
||||||
|
Settings = 0x010000000000100Eull,
|
||||||
|
OfflineWeb = 0x010000000000100Full,
|
||||||
|
LoginShare = 0x0100000000001010ull,
|
||||||
|
WebAuth = 0x0100000000001011ull,
|
||||||
|
Starter = 0x0100000000001012ull,
|
||||||
|
MyPage = 0x0100000000001013ull,
|
||||||
|
MaxProgramId = 0x0100000000001FFFull,
|
||||||
|
};
|
||||||
|
|
||||||
enum class LibraryAppletMode : u32 {
|
enum class LibraryAppletMode : u32 {
|
||||||
AllForeground = 0,
|
AllForeground = 0,
|
||||||
Background = 1,
|
Background = 1,
|
||||||
|
@ -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,
|
void GMainWindow::BootGame(const QString& filename, u64 program_id, std::size_t program_index,
|
||||||
StartGameType type, AmLaunchType launch_type) {
|
StartGameType type, AmLaunchType launch_type) {
|
||||||
LOG_INFO(Frontend, "yuzu starting...");
|
LOG_INFO(Frontend, "yuzu starting...");
|
||||||
|
|
||||||
|
if (program_id > static_cast<u64>(Service::AM::Applets::AppletProgramId::MaxProgramId)) {
|
||||||
StoreRecentFile(filename); // Put the filename on top of the list
|
StoreRecentFile(filename); // Put the filename on top of the list
|
||||||
|
}
|
||||||
|
|
||||||
// Save configurations
|
// Save configurations
|
||||||
UpdateUISettings();
|
UpdateUISettings();
|
||||||
@ -4273,7 +4276,7 @@ void GMainWindow::OnToggleStatusBar() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnAlbum() {
|
void GMainWindow::OnAlbum() {
|
||||||
constexpr u64 AlbumId = 0x010000000000100Dull;
|
constexpr u64 AlbumId = static_cast<u64>(Service::AM::Applets::AppletProgramId::PhotoViewer);
|
||||||
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
|
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
|
||||||
if (!bis_system) {
|
if (!bis_system) {
|
||||||
QMessageBox::warning(this, tr("No firmware available"),
|
QMessageBox::warning(this, tr("No firmware available"),
|
||||||
@ -4296,7 +4299,7 @@ void GMainWindow::OnAlbum() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
|
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();
|
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
|
||||||
if (!bis_system) {
|
if (!bis_system) {
|
||||||
QMessageBox::warning(this, tr("No firmware available"),
|
QMessageBox::warning(this, tr("No firmware available"),
|
||||||
@ -4320,7 +4323,7 @@ void GMainWindow::OnCabinet(Service::NFP::CabinetMode mode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnMiiEdit() {
|
void GMainWindow::OnMiiEdit() {
|
||||||
constexpr u64 MiiEditId = 0x0100000000001009ull;
|
constexpr u64 MiiEditId = static_cast<u64>(Service::AM::Applets::AppletProgramId::MiiEdit);
|
||||||
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
|
auto bis_system = system->GetFileSystemController().GetSystemNANDContents();
|
||||||
if (!bis_system) {
|
if (!bis_system) {
|
||||||
QMessageBox::warning(this, tr("No firmware available"),
|
QMessageBox::warning(this, tr("No firmware available"),
|
||||||
|
Loading…
Reference in New Issue
Block a user