Фикс распаковки wrapper'ов

This commit is contained in:
Gravit 2018-10-25 18:04:18 +07:00
parent e286c951df
commit 23677bd5a3
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -91,10 +91,10 @@ public static void load()
public static void start(Path path1) throws IOException { public static void start(Path path1) throws IOException {
Path path = path1.resolve("guard"); Path path = path1.resolve("guard");
Path avanguard = path.resolve(JVMHelper.OS_BITS == 64 ? "Avanguard64.dll" : "Avanguard32.dll"); Path avanguard = path.resolve(JVMHelper.JVM_BITS == 64 ? "Avanguard64.dll" : "Avanguard32.dll");
Path wrapper = path.resolve(JVMHelper.OS_BITS == 64 ? NAME + "64.exe" : NAME + "32.exe"); Path wrapper = path.resolve(JVMHelper.JVM_BITS == 64 ? NAME + "64.exe" : NAME + "32.exe");
UnpackHelper.unpack(JVMHelper.OS_BITS == 64 ? "Avanguard64.dll" : "Avanguard32.dll",avanguard); UnpackHelper.unpack(JVMHelper.JVM_BITS == 64 ? "Avanguard64.dll" : "Avanguard32.dll",avanguard);
UnpackHelper.unpack(JVMHelper.OS_BITS == 64 ? "wrapper64.dll" : "wrapper32.dll",wrapper); UnpackHelper.unpack(JVMHelper.JVM_BITS == 64 ? "wrapper64.exe" : "wrapper32.exe",wrapper);
AvanguardStarter.wrapper = wrapper; AvanguardStarter.wrapper = wrapper;
AvanguardStarter.avanguard = avanguard; AvanguardStarter.avanguard = avanguard;
HashedDir guard = new HashedDir(path, null, true, false); HashedDir guard = new HashedDir(path, null, true, false);