/** Loads a shared library for the platform the application is running on. * @param libraryName The platform independent library name. If not contain a prefix (eg lib) or suffix (eg .dll). */ public void load (String libraryName) { // in case of iOS, things have been linked statically to the executable, bail out. if (isIos) return; synchronized (SharedLibraryLoader.class) { if (isLoaded(libraryName)) return; String platformName = mapLibraryName(libraryName); try { if (isAndroid) System.loadLibrary(platformName); else loadFile(platformName); setLoaded(libraryName); } catch (Throwable ex) { throw new GdxRuntimeException("Couldn't load shared library '" + platformName + "' for target: " + System.getProperty("os.name") + (is64Bit ? ", 64-bit" : ", 32-bit"), ex); } } }
/** Loads a shared library for the platform the application is running on. * @param libraryName The platform independent library name. If not contain a prefix (eg lib) or suffix (eg .dll). */ public void load (String libraryName) { // in case of iOS, things have been linked statically to the executable, bail out. if (isIos) return; synchronized (SharedLibraryLoader.class) { if (isLoaded(libraryName)) return; String platformName = mapLibraryName(libraryName); try { if (isAndroid) System.loadLibrary(platformName); else loadFile(platformName); setLoaded(libraryName); } catch (Throwable ex) { throw new GdxRuntimeException("Couldn't load shared library '" + platformName + "' for target: " + System.getProperty("os.name") + (is64Bit ? ", 64-bit" : ", 32-bit"), ex); } } }
/** Loads a shared library for the platform the application is running on. * @param libraryName The platform independent library name. If not contain a prefix (eg lib) or suffix (eg .dll). */ public void load (String libraryName) { // in case of iOS, things have been linked statically to the executable, bail out. if (isIos) return; synchronized (SharedLibraryLoader.class) { if (isLoaded(libraryName)) return; String platformName = mapLibraryName(libraryName); try { if (isAndroid) System.loadLibrary(platformName); else loadFile(platformName); setLoaded(libraryName); } catch (Throwable ex) { throw new GdxRuntimeException("Couldn't load shared library '" + platformName + "' for target: " + System.getProperty("os.name") + (is64Bit ? ", 64-bit" : ", 32-bit"), ex); } } }