only recalculate extended access point checksum when firmware is a DSi one

This commit is contained in:
RSDuck 2023-09-20 19:17:26 +02:00
parent 5bfe51e670
commit 6ca02aab2c
1 changed files with 5 additions and 2 deletions

View File

@ -364,9 +364,12 @@ void SPI_Firmware::Firmware::UpdateChecksums()
ap.UpdateChecksum(); ap.UpdateChecksum();
} }
for (SPI_Firmware::ExtendedWifiAccessPoint& eap : ExtendedAccessPoints()) if (Header().ConsoleType == FirmwareConsoleType::DSi)
{ {
eap.UpdateChecksum(); for (SPI_Firmware::ExtendedWifiAccessPoint& eap : ExtendedAccessPoints())
{
eap.UpdateChecksum();
}
} }
for (SPI_Firmware::UserData& u : UserData()) for (SPI_Firmware::UserData& u : UserData())