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;
if(isN3DS) model = 1;
let redirected = false;
// Start validation
redirected = can_soundhax(major.value, minor.value, nver.value, region.value, model);
if (redirected) return true;
redirected = can_ssloth(major.value, minor.value, nver.value, region.value, model);
if (redirected) return true;
redirected = can_safecerthax(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);
let redirected = [
can_soundhax,
can_ssloth,
can_safecerthax,
can_seedminer,
can_superskaterhax,
].some(func => func(major.value, minor.value, nver.value, region.value, model));
if (redirected) return true;
// if it actually got to this point, there is no exploit available.