aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-03-21 21:52:02 -0400
committerbowser0000 <bowser0000@gmail.com>2021-03-21 21:52:02 -0400
commitc63fa1b2d1c2c3b8704337f7908e4dd18bbc1733 (patch)
treef40228dbe22f05ca2123124a74a544ccf62aac02 /src/main
parent4ab6601c074b9486e4c656d577d86079d9b47916 (diff)
downloadSkyblockMod-c63fa1b2d1c2c3b8704337f7908e4dd18bbc1733.tar.gz
SkyblockMod-c63fa1b2d1c2c3b8704337f7908e4dd18bbc1733.tar.bz2
SkyblockMod-c63fa1b2d1c2c3b8704337f7908e4dd18bbc1733.zip
Fix custom music file on non-windows operating systems
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/features/CustomMusic.java5
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);