[FIX] Исправление использование своей Java с GravitGuard и запуска GravitGuard на Linux и MacOS.

This commit is contained in:
sanik2021 2019-09-16 20:18:01 +03:00
parent f4f329981c
commit ffe622e0b9
No known key found for this signature in database
GPG key ID: 65712DE2AED67455

View file

@ -29,10 +29,6 @@ public String getName() {
@Override
public Path getJavaBinPath() {
if (JVMHelper.OS_TYPE == JVMHelper.OS.MUSTDIE) {
String projectName = Launcher.getConfig().projectname;
String wrapperUnpackName = JVMHelper.JVM_BITS == 64 ? projectName.concat("64.exe") : projectName.concat("32.exe");
return DirBridge.getGuardDir().resolve(wrapperUnpackName);
} else if (ClientLauncher.getJavaBinPath() != null) {
javaBinPath = ClientLauncher.getJavaBinPath();
String projectName = Launcher.getConfig().projectname;
String wrapperUnpackName = JVMHelper.JVM_BITS == 64 ? projectName.concat("64.exe") : projectName.concat("32.exe");
@ -58,7 +54,7 @@ public void init(boolean clientInstance) {
} catch (IOException e) {
throw new SecurityException(e);
}
if (clientInstance) GravitGuardBridge.callGuard();
if (clientInstance && JVMHelper.OS_TYPE == JVMHelper.OS.MUSTDIE) GravitGuardBridge.callGuard();
}
@Override