diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/me/Danker/features/CustomMusic.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/features/CustomMusic.java b/src/main/java/me/Danker/features/CustomMusic.java index d2d6b6f..3c411d8 100644 --- a/src/main/java/me/Danker/features/CustomMusic.java +++ b/src/main/java/me/Danker/features/CustomMusic.java @@ -85,13 +85,14 @@ public class CustomMusic { public static void init(String configDirectory) throws IOException, LineUnavailableException, UnsupportedAudioFileException { if (configDirectory == null) return; - File directory = new File(configDirectory + "\\dsmmusic"); + File directory = new File(configDirectory + "/dsmmusic"); if (!directory.exists()) directory.mkdir(); reset(); dungeonboss = AudioSystem.getClip(); - File dungeonBossFile = new File(configDirectory + "\\dsmmusic\\dungeonboss.wav"); + File dungeonBossFile = new File(configDirectory + "/dsmmusic/dungeonboss.wav"); + System.out.println("dungeonboss.wav exists?: " + dungeonBossFile.exists()); if (dungeonBossFile.exists()) { AudioInputStream ais = AudioSystem.getAudioInputStream(dungeonBossFile); dungeonboss.open(ais); |