mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 08:22:04 +00:00
ldr: update 10.0.0 conditionals
This commit is contained in:
parent
4a38a36036
commit
353e27b9e2
2 changed files with 3 additions and 1 deletions
|
@ -98,6 +98,7 @@ namespace ams::ldr {
|
|||
|
||||
Result LoaderService::SetEnabledProgramVerification(bool enabled) {
|
||||
ldr::SetEnabledProgramVerification(enabled);
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
/* Atmosphere commands. */
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue