1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-09 02:06:45 +02:00

consoleVersionSelect: add version prefix

If they don't select "Ver.", they have Luma3DS and have skipped the CFW check.
This commit is contained in:
ManiacOfGitHub
2025-01-31 14:43:21 -05:00
committed by lifehackerhansol
parent ac9019eec2
commit c0410889ff
3 changed files with 15 additions and 2 deletions

View File

@@ -10,7 +10,13 @@
</table> </table>
<div id="selectversion" class="selectversion"> <div id="selectversion" class="selectversion">
<br> <br>
<select id="major"> <select id="prefix">
<option />
<option>Ver.</option>
<option>Sys.</option>
<option>Emu.</option>
<option>{{ $frontmatter.otherPrefix }}</option>
</select>&nbsp;<select id="major">
<option /> <option />
<option>11</option> <option>11</option>
<option>10</option> <option>10</option>

View File

@@ -1,6 +1,7 @@
--- ---
noneSelected: System model is required. noneSelected: System model is required.
invalidVersion: This doesn't seem to be a valid system version. invalidVersion: This doesn't seem to be a valid system version.
otherPrefix: (Other)
head: [ head: [
['script', {src: '/assets/js/common.js'}], ['script', {src: '/assets/js/common.js'}],
['script', {src: '/assets/js/selecting.js'}] ['script', {src: '/assets/js/selecting.js'}]

View File

@@ -152,6 +152,7 @@ function can_mset9(major, minor, native, region, model) {
- All models - All models
*/ */
function redirect() { function redirect() {
const prefix = document.getElementById("prefix").value;
const major = document.getElementById("major").value; const major = document.getElementById("major").value;
const minor = document.getElementById("minor").value; const minor = document.getElementById("minor").value;
const nver = document.getElementById("nver").value; const nver = document.getElementById("nver").value;
@@ -170,7 +171,7 @@ function redirect() {
if(isO3DS) model = DEVICE_O3DS if(isO3DS) model = DEVICE_O3DS
else if(isN3DS) model = DEVICE_N3DS; else if(isN3DS) model = DEVICE_N3DS;
if (!validate_version(major, minor, nver, region, model)) { if (prefix == '' || !validate_version(major, minor, nver, region, model)) {
document.getElementById("result_invalidVersion").style.display = "block"; document.getElementById("result_invalidVersion").style.display = "block";
return; return;
} }
@@ -178,6 +179,11 @@ function redirect() {
// Store selected version for some later pages // Store selected version for some later pages
sessionStorage.setItem("selected_version", JSON.stringify({major, minor, nver, region, model})); sessionStorage.setItem("selected_version", JSON.stringify({major, minor, nver, region, model}));
if(prefix != "Ver.") {
window.location.href = "checking-for-cfw";
return true;
}
const redirected = [ const redirected = [
can_soundhax, can_soundhax,
can_ssloth, can_ssloth,