Removes support for 128KB DS firmwares

128KB DS firmwares come from DSi/3DS and aren’t bootable, so we consider them unsupported.
This commit is contained in:
Riley Testut 2021-03-10 14:32:09 -06:00
parent 8888b72d29
commit 8f7e7280f9

View File

@ -74,8 +74,9 @@ enum DSBIOS: SystemBIOS, CaseIterable
// 4KB
return Set([4].map { Measurement(value: $0, unit: .kibibytes) }.map { $0...$0 })
case .firmware:
// 128KB, 256KB, or 512KB
return Set([128, 256, 512].map { Measurement(value: $0, unit: .kibibytes) }.map { $0...$0 })
// 256KB or 512KB
// DSi/3DS 128KB firmwares technically work but aren't bootable, so we treat them as unsupported.
return Set([256, 512].map { Measurement(value: $0, unit: .kibibytes) }.map { $0...$0 })
}
}
}