add 11.17 blacklist for K/C/T

This commit is contained in:
DannyAAM 2023-07-15 05:00:49 +08:00 committed by lifehackerhansol
parent fb5ac3b3ae
commit c6df8a43dd
No known key found for this signature in database
GPG Key ID: 80FB184AFC0B3B0E

View File

@ -25,11 +25,17 @@ const major_minor_map = {
}
// Validate version
// CHN/TWN doesn't have new model
// KOR/CHN/TWN doesn't have 11.17 currently
function validate_version(major, minor, native, region, model) {
if (model == DEVICE_N3DS && ["C", "T"].includes(region)) {
return false;
}
if (major == 11 && minor == 17 && ["K", "C", "T"].includes(region)) {
return false;
}
const minor_max = major_minor_map[major];
if (!isNaN(minor_max) && minor > minor_max) {
return false;