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 // 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) { function validate_version(major, minor, native, region, model) {
if (model == DEVICE_N3DS && ["C", "T"].includes(region)) { if (model == DEVICE_N3DS && ["C", "T"].includes(region)) {
return false; return false;
} }
if (major == 11 && minor == 17 && ["K", "C", "T"].includes(region)) {
return false;
}
const minor_max = major_minor_map[major]; const minor_max = major_minor_map[major];
if (!isNaN(minor_max) && minor > minor_max) { if (!isNaN(minor_max) && minor > minor_max) {
return false; return false;