mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
fusee: fix prodinfo blanking flag detection for sysmmc (closes #1610)
This commit is contained in:
parent
844e88bdfe
commit
44beeecc9e
1 changed files with 12 additions and 8 deletions
|
@ -622,17 +622,21 @@ namespace ams::nxboot {
|
||||||
storage_ctx.flags[0] &= ~secmon::SecureMonitorConfigurationFlag_EnableUserModePerformanceCounterAccess;
|
storage_ctx.flags[0] &= ~secmon::SecureMonitorConfigurationFlag_EnableUserModePerformanceCounterAccess;
|
||||||
}
|
}
|
||||||
} else if (std::strcmp(entry.key, "blank_prodinfo_sysmmc") == 0) {
|
} else if (std::strcmp(entry.key, "blank_prodinfo_sysmmc") == 0) {
|
||||||
if (entry.value[0] == '1' && !emummc_enabled) {
|
if (!emummc_enabled) {
|
||||||
|
if (entry.value[0] == '1') {
|
||||||
storage_ctx.flags[0] |= secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
storage_ctx.flags[0] |= secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
||||||
} else {
|
} else {
|
||||||
storage_ctx.flags[0] &= ~secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
storage_ctx.flags[0] &= ~secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (std::strcmp(entry.key, "blank_prodinfo_emummc") == 0) {
|
} else if (std::strcmp(entry.key, "blank_prodinfo_emummc") == 0) {
|
||||||
if (entry.value[0] == '1' && emummc_enabled) {
|
if (emummc_enabled) {
|
||||||
|
if (entry.value[0] == '1') {
|
||||||
storage_ctx.flags[0] |= secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
storage_ctx.flags[0] |= secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
||||||
} else {
|
} else {
|
||||||
storage_ctx.flags[0] &= ~secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
storage_ctx.flags[0] &= ~secmon::SecureMonitorConfigurationFlag_ShouldUseBlankCalibrationBinary;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (std::strcmp(entry.key, "allow_writing_to_cal_sysmmc") == 0) {
|
} else if (std::strcmp(entry.key, "allow_writing_to_cal_sysmmc") == 0) {
|
||||||
if (entry.value[0] == '1') {
|
if (entry.value[0] == '1') {
|
||||||
storage_ctx.flags[0] |= secmon::SecureMonitorConfigurationFlag_AllowWritingToCalibrationBinarySysmmc;
|
storage_ctx.flags[0] |= secmon::SecureMonitorConfigurationFlag_AllowWritingToCalibrationBinarySysmmc;
|
||||||
|
|
Loading…
Reference in a new issue