mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 19:49:11 +03:00
15 lines
315 B
Java
15 lines
315 B
Java
package ru.gravit.utils;
|
|
|
|
import ru.gravit.utils.helper.LogHelper;
|
|
|
|
public final class NativeJVMHalt {
|
|
public NativeJVMHalt(int haltCode) {
|
|
this.haltCode = haltCode;
|
|
LogHelper.error("JVM exit code %d", haltCode);
|
|
halt();
|
|
}
|
|
|
|
public int haltCode;
|
|
|
|
public native void halt();
|
|
}
|