1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-19 15:02:08 +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

@@ -11,6 +11,7 @@
<div id="selectversion" class="selectversion">
<br>
<select id="major">
<option />
<option>11</option>
<option>10</option>
<option>9</option>
@@ -24,6 +25,7 @@
<option>1</option>
<option>0</option>
</select>.<select id="minor">
<option />
<option>17</option>
<option>16</option>
<option>15</option>
@@ -43,8 +45,10 @@
<option>1</option>
<option>0</option>
</select>.<select id="whydidnintendodecidetodothingslikethis">
<option />
<option>0</option>
</select>-<select id="nver">
<option />
<option>50</option>
<option>49</option>
<option>48</option>
@@ -97,6 +101,7 @@
<option>1</option>
<option>0</option>
</select><select id="region">
<option />
<option>E</option>
<option>U</option>
<option>J</option>

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;
}