mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-17 22:11:51 +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
@@ -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