fs: fix RomFs GetEntryType (fixes mariko daybreak)

This commit is contained in:
Michael Scire committed 2020-11-21 04:00:52 -08:00
1 parent 24eef96b15
commit 7f1a7cfd2d
4 files changed
+20 -22

No files matched your search

@@ -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() {