Require both keys to use the emulator

This commit is contained in:
Levi Akatsuki 2024-03-16 15:57:32 +00:00 committed by ddutchie
parent 44ffa0092e
commit 8755d2bad4
5 changed files with 50 additions and 7 deletions

View file

@ -55,6 +55,10 @@ AppLoader_NAX::LoadResult AppLoader_NAX::Load(Kernel::KProcess& process, Core::S
return {ResultStatus::ErrorMissingProductionKeyFile, {}};
}
if (!Core::Crypto::KeyManager::KeyFileExists(true)) {
return {ResultStatus::ErrorMissingProductionKeyFile, {}};
}
return {ResultStatus::ErrorNAXInconvertibleToNCA, {}};
}