Merge branch 'nodec' into 'dev'

Simply block loading of encrypted ROM formats for now

See merge request suyu-emu/suyu!53
This commit is contained in:
niansa 2024-03-07 00:33:42 +00:00
commit cb06742375
2 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,8 @@ FileType AppLoader_NSP::IdentifyType(const FileSys::VirtualFile& nsp_file) {
}
AppLoader_NSP::LoadResult AppLoader_NSP::Load(Kernel::KProcess& process, Core::System& system) {
return {ResultStatus::ErrorLoadingNSO, {}};
if (is_loaded) {
return {ResultStatus::ErrorAlreadyLoaded, {}};
}

View File

@ -55,6 +55,8 @@ FileType AppLoader_XCI::IdentifyType(const FileSys::VirtualFile& xci_file) {
}
AppLoader_XCI::LoadResult AppLoader_XCI::Load(Kernel::KProcess& process, Core::System& system) {
return {ResultStatus::ErrorBadXCIHeader, {}};
if (is_loaded) {
return {ResultStatus::ErrorAlreadyLoaded, {}};
}