mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-04 16:53:48 -04:00
fs: fix RomFs GetEntryType (fixes mariko daybreak)
This commit is contained in:
parent
24eef96b15
commit
7f1a7cfd2d
4 changed files with 20 additions and 22 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue