now whines when filepath is invalid
This commit is contained in:
parent
3d6dde5df6
commit
7b759d32db
|
@ -95,6 +95,7 @@ public class WaveData {
|
||||||
AudioSystem.getAudioInputStream(
|
AudioSystem.getAudioInputStream(
|
||||||
new BufferedInputStream(WaveData.class.getClassLoader().getResourceAsStream(filepath))));
|
new BufferedInputStream(WaveData.class.getClassLoader().getResourceAsStream(filepath))));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
org.lwjgl.Sys.log("Unable to load file: " + filepath);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue