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:
committed by
lifehackerhansol
parent
ac9019eec2
commit
c0410889ff
@@ -10,7 +10,13 @@
|
||||
</table>
|
||||
<div id="selectversion" class="selectversion">
|
||||
<br>
|
||||
<select id="major">
|
||||
<select id="prefix">
|
||||
<option />
|
||||
<option>Ver.</option>
|
||||
<option>Sys.</option>
|
||||
<option>Emu.</option>
|
||||
<option>{{ $frontmatter.otherPrefix }}</option>
|
||||
</select> <select id="major">
|
||||
<option />
|
||||
<option>11</option>
|
||||
<option>10</option>
|
||||
|
@@ -1,6 +1,7 @@
|
||||
---
|
||||
noneSelected: System model is required.
|
||||
invalidVersion: This doesn't seem to be a valid system version.
|
||||
otherPrefix: (Other)
|
||||
head: [
|
||||
['script', {src: '/assets/js/common.js'}],
|
||||
['script', {src: '/assets/js/selecting.js'}]
|
||||
|
@@ -152,6 +152,7 @@ function can_mset9(major, minor, native, region, model) {
|
||||
- All models
|
||||
*/
|
||||
function redirect() {
|
||||
const prefix = document.getElementById("prefix").value;
|
||||
const major = document.getElementById("major").value;
|
||||
const minor = document.getElementById("minor").value;
|
||||
const nver = document.getElementById("nver").value;
|
||||
@@ -170,7 +171,7 @@ function redirect() {
|
||||
if(isO3DS) model = DEVICE_O3DS
|
||||
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";
|
||||
return;
|
||||
}
|
||||
@@ -178,6 +179,11 @@ function redirect() {
|
||||
// Store selected version for some later pages
|
||||
sessionStorage.setItem("selected_version", JSON.stringify({major, minor, nver, region, model}));
|
||||
|
||||
if(prefix != "Ver.") {
|
||||
window.location.href = "checking-for-cfw";
|
||||
return true;
|
||||
}
|
||||
|
||||
const redirected = [
|
||||
can_soundhax,
|
||||
can_ssloth,
|
||||
|
Reference in New Issue
Block a user