mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 20:56:28 +00:00
Properly add code switches to the region config
This commit is contained in:
parent
81e52c364c
commit
ec31289921
@ -106,17 +106,19 @@ public final class RegionHandler implements Router {
|
|||||||
// Determine config settings.
|
// Determine config settings.
|
||||||
var hiddenIcons = new JsonArray();
|
var hiddenIcons = new JsonArray();
|
||||||
hiddenIcons.add(40);
|
hiddenIcons.add(40);
|
||||||
var showExceptions = GameConstants.DEBUG;
|
var codeSwitch = new JsonArray();
|
||||||
|
codeSwitch.add(3628);
|
||||||
|
|
||||||
// Create a config object.
|
// Create a config object.
|
||||||
var customConfig = new JsonObject();
|
var customConfig = new JsonObject();
|
||||||
customConfig.addProperty("sdkenv", "2");
|
customConfig.addProperty("sdkenv", "2");
|
||||||
customConfig.addProperty("checkdevice", "false");
|
customConfig.addProperty("checkdevice", "false");
|
||||||
customConfig.addProperty("loadPatch", "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("regionConfig", "pm|fk|add");
|
||||||
customConfig.addProperty("downloadMode", "0");
|
customConfig.addProperty("downloadMode", "0");
|
||||||
customConfig.addProperty("codeSwitch", "3628");
|
customConfig.add("codeSwitch", codeSwitch);
|
||||||
customConfig.add("coverSwitch", hiddenIcons);
|
customConfig.add("coverSwitch", hiddenIcons);
|
||||||
|
|
||||||
// XOR the config with the key.
|
// XOR the config with the key.
|
||||||
|
Loading…
Reference in New Issue
Block a user