mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
All classes use Sys.initialize now
This commit is contained in:
parent
c093f3ace1
commit
b98677fb47
14 changed files with 1285 additions and 1308 deletions
|
|
@ -87,6 +87,8 @@ public final class Sys {
|
|||
*/
|
||||
public static final boolean DEBUG = Boolean.getBoolean("org.lwjgl.Sys.debug");
|
||||
|
||||
private static boolean initialized = false;
|
||||
|
||||
static {
|
||||
initialize();
|
||||
|
||||
|
|
@ -123,7 +125,10 @@ public final class Sys {
|
|||
/**
|
||||
* Initialization.
|
||||
*/
|
||||
private static void initialize() {
|
||||
public static void initialize() {
|
||||
if (initialized)
|
||||
return;
|
||||
initialized = true;
|
||||
System.loadLibrary(LIBRARY_NAME);
|
||||
setDebug(DEBUG);
|
||||
setTime(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue