mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] UOE в сериализации LauncherEnvironment.
This commit is contained in:
parent
c714a1a5ed
commit
bde9fd55f9
1 changed files with 17 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
import org.objectweb.asm.tree.FieldNode;
|
||||
import pro.gravit.launcher.Launcher;
|
||||
import pro.gravit.launcher.LauncherConfig;
|
||||
import pro.gravit.launcher.LauncherConfig.LauncherEnvironment;
|
||||
import pro.gravit.launchserver.LaunchServer;
|
||||
import pro.gravit.launchserver.asm.ClassMetadataReader;
|
||||
import pro.gravit.launchserver.asm.InjectClassAcceptor;
|
||||
|
@ -191,7 +192,22 @@ protected void initProps() {
|
|||
properties.put("launcher.port", 32148 + SecurityHelper.newRandom().nextInt(512));
|
||||
properties.put("launcher.guardType", server.config.launcher.guardType);
|
||||
properties.put("launcher.isWarningMissArchJava", server.config.launcher.warningMissArchJava);
|
||||
properties.put("launchercore.env" ,server.config.env);
|
||||
int cenv = -1;
|
||||
switch (server.config.env) {
|
||||
case DEV:
|
||||
cenv = 0;
|
||||
break;
|
||||
case DEBUG:
|
||||
cenv = 1;
|
||||
break;
|
||||
case STD:
|
||||
cenv = 2;
|
||||
break;
|
||||
case PROD:
|
||||
cenv = 3;
|
||||
break;
|
||||
}
|
||||
properties.put("launchercore.env", cenv);
|
||||
properties.put("runtimeconfig.passwordEncryptKey", server.runtime.passwordEncryptKey);
|
||||
String launcherSalt = SecurityHelper.randomStringToken();
|
||||
byte[] launcherSecureHash = SecurityHelper.digest(SecurityHelper.DigestAlgorithm.SHA256,
|
||||
|
|
Loading…
Reference in a new issue