diff --git a/LauncherAPI/src/main/java/pro/gravit/launcher/LauncherConfig.java b/LauncherAPI/src/main/java/pro/gravit/launcher/LauncherConfig.java index b7145540..bf8d606a 100644 --- a/LauncherAPI/src/main/java/pro/gravit/launcher/LauncherConfig.java +++ b/LauncherAPI/src/main/java/pro/gravit/launcher/LauncherConfig.java @@ -42,6 +42,22 @@ public static AutogenConfig getAutogenConfig() { public final String secureCheckSalt; public final String passwordEncryptKey; + public LauncherConfig(String address, ECPublicKey publicKey, Map runtime, String projectName) { + this.address = address; + this.publicKey = publicKey; + this.runtime = Collections.unmodifiableMap(new HashMap<>(runtime)); + this.projectName = projectName; + this.clientPort = 32148; + guardType = "no"; + isWarningMissArchJava = true; + isNettyEnabled = false; + environment = LauncherEnvironment.STD; + secureCheckSalt = null; + secureCheckHash = null; + passwordEncryptKey = null; + trustManager = null; + } + public LauncherConfig() throws IOException, InvalidKeySpecException { publicKey = SecurityHelper.toPublicECKey(runtimeConfig.key); secureCheckHash = config.secureCheckHash;