All classes use Sys.initialize now

This commit is contained in:
Elias Naur 2004-03-27 13:48:58 +00:00
parent c093f3ace1
commit b98677fb47
14 changed files with 1285 additions and 1308 deletions

View file

@ -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);