Made LWJGLUtil.getPathFromClassLoader private

This commit is contained in:
Elias Naur 2006-11-20 19:28:50 +00:00
parent 287861ec89
commit f62f11b437
2 changed files with 5 additions and 1 deletions

View File

@ -404,7 +404,7 @@ public class LWJGLUtil {
* @param classloader Classloader to use
* @return Absolute path to library if found, otherwise null
*/
public static String getPathFromClassLoader(final String libname, final ClassLoader classloader) {
private static String getPathFromClassLoader(final String libname, final ClassLoader classloader) {
try {
log("getPathFromClassLoader: searching for: " + libname);
Class c = classloader.getClass();

View File

@ -122,6 +122,7 @@ public final class AL {
try {
nCreate(oalPaths[i]);
created = true;
init(deviceArguments, contextFrequency, contextRefresh, contextSynchronized, openDevice);
break;
} catch (LWJGLException e) {
LWJGLUtil.log("Failed to load " + oalPaths[i] + ": " + e.getMessage());
@ -131,10 +132,13 @@ public final class AL {
// Try to load OpenAL from the framework instead
nCreateDefault();
created = true;
init(deviceArguments, contextFrequency, contextRefresh, contextSynchronized, openDevice);
}
if (!created)
throw new LWJGLException("Could not locate OpenAL library.");
}
private static void init(String deviceArguments, int contextFrequency, int contextRefresh, boolean contextSynchronized, boolean openDevice) throws LWJGLException {
try {
AL10.initNativeStubs();
ALC.initNativeStubs();