Properly add code switches to the region config

This commit is contained in:
KingRainbow44 2023-08-19 12:42:42 -04:00
parent 81e52c364c
commit ec31289921
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -106,17 +106,19 @@ public final class RegionHandler implements Router {
// Determine config settings.
var hiddenIcons = new JsonArray();
hiddenIcons.add(40);
var showExceptions = GameConstants.DEBUG;
var codeSwitch = new JsonArray();
codeSwitch.add(3628);
// Create a config object.
var customConfig = new JsonObject();
customConfig.addProperty("sdkenv", "2");
customConfig.addProperty("checkdevice", "false");
customConfig.addProperty("loadPatch", "false");
customConfig.addProperty("showexception", String.valueOf(showExceptions));
customConfig.addProperty("showexception",
String.valueOf(GameConstants.DEBUG));
customConfig.addProperty("regionConfig", "pm|fk|add");
customConfig.addProperty("downloadMode", "0");
customConfig.addProperty("codeSwitch", "3628");
customConfig.add("codeSwitch", codeSwitch);
customConfig.add("coverSwitch", hiddenIcons);
// XOR the config with the key.