fs: fix RomFs GetEntryType (fixes mariko daybreak)
This commit is contained in:
@@ -23,12 +23,8 @@ namespace ams::mitm::sysupdater {
|
||||
alignas(os::MemoryPageSize) u8 g_boot_image_update_buffer[64_KB];
|
||||
|
||||
updater::BootImageUpdateType GetBootImageUpdateType() {
|
||||
int boot_image_update_type;
|
||||
auto size = settings::fwdbg::GetSettingsItemValue(std::addressof(boot_image_update_type), sizeof(boot_image_update_type), "systeminitializer", "boot_image_update_type");
|
||||
if (size != sizeof(boot_image_update_type)) {
|
||||
return updater::BootImageUpdateType::Erista;
|
||||
}
|
||||
return updater::GetBootImageUpdateType(boot_image_update_type);
|
||||
/* NOTE: Here Nintendo uses the value of system setting systeminitializer!boot_image_update_type...but we prefer not to take the risk. */
|
||||
return updater::GetBootImageUpdateType(spl::GetHardwareType());
|
||||
}
|
||||
|
||||
Result MarkPreCommitForBootImages() {
|
||||
|
||||
Reference in New Issue
Block a user