mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-17 06:12:15 +02:00
One last check patch
This commit is contained in:
parent
eefa783f12
commit
a41ccc510e
@ -109,7 +109,7 @@ namespace ams::ldr {
|
||||
Result ValidateAcidSignature(Meta *meta) {
|
||||
/* Loader did not check signatures prior to 10.0.0. */
|
||||
if (hos::GetVersion() < hos::Version_10_0_0) {
|
||||
meta->is_signed = false;
|
||||
meta->is_signed = true;
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
||||
@ -221,9 +221,9 @@ namespace ams::ldr {
|
||||
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));
|
||||
R_TRY(ValidateAcidSignature(&g_original_meta_cache.meta));
|
||||
//R_TRY(ValidateAcidSignature(&g_original_meta_cache.meta));
|
||||
meta->modulus = g_original_meta_cache.meta.modulus;
|
||||
meta->is_signed = g_original_meta_cache.meta.is_signed;
|
||||
// meta->is_signed = g_original_meta_cache.meta.is_signed;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user