}\r
\r
static public String extractLibrary (String native32, String native64) {\r
+ String nativeFileName = is64Bit ? native64 : native32;\r
try {\r
// Extract native from classpath to temp dir.\r
- String nativeFileName = is64Bit ? native64 : native32;\r
InputStream input = GdxNativesLoader.class.getResourceAsStream("/" + nativeFileName);\r
if (input == null) return null;\r
nativesDir.mkdirs();\r
output.close();\r
return nativeFile.getAbsolutePath();\r
} catch (IOException ex) {\r
- ex.printStackTrace();\r
+ new GdxRuntimeException("Error extracting native library: " + nativeFileName, ex).printStackTrace();\r
return null;\r
}\r
}\r