Replace multi-function call with multi function variables and singular function call

This commit is contained in:
NightScript 2023-05-24 15:17:23 -04:00 committed by lifehackerhansol
parent 0977fcf463
commit a03da2daf5
No known key found for this signature in database
GPG key ID: 80FB184AFC0B3B0E

View file

@ -199,17 +199,13 @@ function redirect() {
var model = 0; var model = 0;
if(isN3DS) model = 1; if(isN3DS) model = 1;
let redirected = false; let redirected = [
// Start validation can_soundhax,
redirected = can_soundhax(major.value, minor.value, nver.value, region.value, model); can_ssloth,
if (redirected) return true; can_safecerthax,
redirected = can_ssloth(major.value, minor.value, nver.value, region.value, model); can_seedminer,
if (redirected) return true; can_superskaterhax,
redirected = can_safecerthax(major.value, minor.value, nver.value, region.value, model); ].some(func => func(major.value, minor.value, nver.value, region.value, model));
if (redirected) return true;
redirected = can_seedminer(major.value, minor.value, nver.value, region.value, model);
if (redirected) return true;
redirected = can_superskaterhax(major.value, minor.value, nver.value, region.value, model);
if (redirected) return true; if (redirected) return true;
// if it actually got to this point, there is no exploit available. // if it actually got to this point, there is no exploit available.