mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-25 10:48:23 -05:00
early-access version 2134
This commit is contained in:
parent
4141a45db7
commit
7a26c1dff6
@ -1,7 +1,7 @@
|
||||
yuzu emulator early access
|
||||
=============
|
||||
|
||||
This is the source code for early-access 2133.
|
||||
This is the source code for early-access 2134.
|
||||
|
||||
## Legal Notice
|
||||
|
||||
|
@ -2447,15 +2447,13 @@ InstallResult GMainWindow::InstallNCA(const QString& filename) {
|
||||
static_cast<size_t>(FileSys::TitleType::FirmwarePackageB);
|
||||
}
|
||||
|
||||
FileSys::InstallResult res;
|
||||
if (index >= static_cast<s32>(FileSys::TitleType::Application)) {
|
||||
res = system.GetFileSystemController().GetUserNANDContents()->InstallEntry(
|
||||
*nca, static_cast<FileSys::TitleType>(index), true, qt_raw_copy);
|
||||
} else {
|
||||
res = system.GetFileSystemController().GetSystemNANDContents()->InstallEntry(
|
||||
*nca, static_cast<FileSys::TitleType>(index), true, qt_raw_copy);
|
||||
}
|
||||
const bool is_application = index >= static_cast<s32>(FileSys::TitleType::Application);
|
||||
const auto& fs_controller = system.GetFileSystemController();
|
||||
auto* registered_cache = is_application ? fs_controller.GetUserNANDContents()
|
||||
: fs_controller.GetSystemNANDContents();
|
||||
|
||||
const auto res = registered_cache->InstallEntry(*nca, static_cast<FileSys::TitleType>(index),
|
||||
true, qt_raw_copy);
|
||||
if (res == FileSys::InstallResult::Success) {
|
||||
return InstallResult::Success;
|
||||
} else if (res == FileSys::InstallResult::OverwriteExisting) {
|
||||
|
Loading…
Reference in New Issue
Block a user