Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.SharedLibraryLoader.extractFile()


        File extractedFile = loader.extractFile("liblwjgl.jnilib", null);
        nativesDir = extractedFile.getParentFile();
        new FileHandle(extractedFile).copyTo(new FileHandle(new File(nativesDir, "liblwjgl.dylib")));
        if (!LwjglApplicationConfiguration.disableAudio) loader.extractFile("openal.dylib", nativesDir.getName());
      } else if (isLinux) {
        nativesDir = loader.extractFile(is64Bit ? "liblwjgl64.so" : "liblwjgl.so", null).getParentFile();
        if (!LwjglApplicationConfiguration.disableAudio)
          loader.extractFile(is64Bit ? "libopenal64.so" : "libopenal.so", nativesDir.getName());
      }
    } catch (Throwable ex) {
      throw new GdxRuntimeException("Unable to extract LWJGL natives.", ex);
View Full Code Here


        new FileHandle(extractedFile).copyTo(new FileHandle(new File(nativesDir, "liblwjgl.dylib")));
        if (!LwjglApplicationConfiguration.disableAudio) loader.extractFile("openal.dylib", nativesDir.getName());
      } else if (isLinux) {
        nativesDir = loader.extractFile(is64Bit ? "liblwjgl64.so" : "liblwjgl.so", null).getParentFile();
        if (!LwjglApplicationConfiguration.disableAudio)
          loader.extractFile(is64Bit ? "libopenal64.so" : "libopenal.so", nativesDir.getName());
      }
    } catch (Throwable ex) {
      throw new GdxRuntimeException("Unable to extract LWJGL natives.", ex);
    }
    System.setProperty("org.lwjgl.librarypath", nativesDir.getAbsolutePath());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.