summaryrefslogtreecommitdiffstats
path: root/make/config/oculusvr/oculusvr-ovr-CustomJavaCode.java
blob: 06f7b3234f6fd5bf5b37a34df1ad32be36d54616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

static {
    AccessController.doPrivileged(new PrivilegedAction<DynamicLibraryBundle>() {
                public DynamicLibraryBundle run() {
                    final DynamicLibraryBundle bundle =  new DynamicLibraryBundle(new OVRDynamicLibraryBundleInfo());
                    if(null==bundle) {
                      throw new RuntimeException("Null DynamicLibraryBundle");
                    }
                    /** No native tool library to load
                    if(!bundle.isToolLibLoaded()) {
                      throw new RuntimeException("Couln't load native OVR library");
                    } */
                    if(!bundle.isLibComplete()) {
                      throw new RuntimeException("Couln't load native OVR/JNI glue library");
                    }
                    if( !initializeImpl() ) {
                        throw new RuntimeException("Initialization failure");
                    }
                    return bundle;
                } } );
}