aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/sound/joal
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-11-03 12:17:17 +0000
committerHolger Zickner <[email protected]>2004-11-03 12:17:17 +0000
commit61533bd6c3db38ca0a184a3acddfcf611a8e391c (patch)
treeb52bee55b5765a21cd54ea834d84d0b0a262dbe3 /src/jake2/sound/joal
parentfcf38ebcc92b9114f6b5a3be2af2672b88f9e13e (diff)
catch UnsatisfiedLinkErrors if no joal libs available
Diffstat (limited to 'src/jake2/sound/joal')
-rw-r--r--src/jake2/sound/joal/JOALSoundImpl.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java
index 64bb061..2caf98c 100644
--- a/src/jake2/sound/joal/JOALSoundImpl.java
+++ b/src/jake2/sound/joal/JOALSoundImpl.java
@@ -2,7 +2,7 @@
* JOALSoundImpl.java
* Copyright (C) 2004
*
- * $Id: JOALSoundImpl.java,v 1.9 2004-10-31 19:47:52 hzi Exp $
+ * $Id: JOALSoundImpl.java,v 1.10 2004-11-03 12:17:17 hzi Exp $
*/
package jake2.sound.joal;
@@ -75,7 +75,9 @@ public final class JOALSoundImpl implements Sound {
if (os.startsWith("Linux")) {
unpack();
} else if (os.startsWith("Windows")) {
- System.loadLibrary("OpenAL32");
+ try {
+ System.loadLibrary("OpenAL32");
+ } catch (Throwable e) {}
}
try {
@@ -86,7 +88,7 @@ public final class JOALSoundImpl implements Sound {
} catch (OpenALException e) {
Com.Printf(e.getMessage() + '\n');
return false;
- } catch (Exception e) {
+ } catch (Throwable e) {
Com.DPrintf(e.getMessage() + '\n');
return false;
}