ldr: update 10.0.0 conditionals

This commit is contained in:
Michael Scire 2020-04-14 03:20:23 -07:00
parent 4a38a36036
commit 353e27b9e2
2 changed files with 3 additions and 1 deletions

View file

@ -98,6 +98,7 @@ namespace ams::ldr {
Result LoaderService::SetEnabledProgramVerification(bool enabled) {
ldr::SetEnabledProgramVerification(enabled);
return ResultSuccess();
}
/* Atmosphere commands. */

View file

@ -219,7 +219,8 @@ namespace ams::ldr {
}
} else if (hos::GetVersion() >= hos::Version_10_0_0) {
/* If storage id is none, there is no base code filesystem, and thus it is impossible for us to validate. */
if (static_cast<ncm::StorageId>(loc.storage_id) != ncm::StorageId::None) {
/* However, if we're an application, we are guaranteed a base code filesystem. */
if (static_cast<ncm::StorageId>(loc.storage_id) != ncm::StorageId::None || ncm::IsApplicationId(loc.program_id)) {
R_TRY(fs::OpenFile(std::addressof(file), BaseMetaPath, fs::OpenMode_Read));
ON_SCOPE_EXIT { fs::CloseFile(file); };
R_TRY(LoadMetaFromFile(file, &g_original_meta_cache));