1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-18 14:31:30 +02:00

consoleVersionSelect: add dummy value as first option

This avoids users mindlessly clicking to a potentially invalid page.

Also fixes a bug where the version is marked as valid when empty...
This commit is contained in:
lifehackerhansol
2024-11-30 21:34:31 -08:00
parent fb9244d6ec
commit 2e49a657dc
2 changed files with 78 additions and 69 deletions

View File

@@ -34,6 +34,10 @@ if (!window.COMMON_LOADED) {
// CHN/TWN doesn't have new model
// KOR/CHN/TWN doesn't have 11.17 currently
c("validate_version", (major, minor, native, region, model) => {
// These need to actually exist.
if(!major || !minor || !native || !region) {
return false;
}
if (model == DEVICE_N3DS && ["C", "T"].includes(region)) {
return false;
}