early-access version 2134

This commit is contained in:
pineappleEA 2021-10-15 23:00:24 +02:00
parent 4141a45db7
commit 7a26c1dff6
2 changed files with 7 additions and 9 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 2133. This is the source code for early-access 2134.
## Legal Notice ## Legal Notice

View file

@ -2447,15 +2447,13 @@ InstallResult GMainWindow::InstallNCA(const QString& filename) {
static_cast<size_t>(FileSys::TitleType::FirmwarePackageB); static_cast<size_t>(FileSys::TitleType::FirmwarePackageB);
} }
FileSys::InstallResult res; const bool is_application = index >= static_cast<s32>(FileSys::TitleType::Application);
if (index >= static_cast<s32>(FileSys::TitleType::Application)) { const auto& fs_controller = system.GetFileSystemController();
res = system.GetFileSystemController().GetUserNANDContents()->InstallEntry( auto* registered_cache = is_application ? fs_controller.GetUserNANDContents()
*nca, static_cast<FileSys::TitleType>(index), true, qt_raw_copy); : fs_controller.GetSystemNANDContents();
} else {
res = system.GetFileSystemController().GetSystemNANDContents()->InstallEntry(
*nca, static_cast<FileSys::TitleType>(index), true, qt_raw_copy);
}
const auto res = registered_cache->InstallEntry(*nca, static_cast<FileSys::TitleType>(index),
true, qt_raw_copy);
if (res == FileSys::InstallResult::Success) { if (res == FileSys::InstallResult::Success) {
return InstallResult::Success; return InstallResult::Success;
} else if (res == FileSys::InstallResult::OverwriteExisting) { } else if (res == FileSys::InstallResult::OverwriteExisting) {