Skip to content

Commit b74c0b1

Browse files
Jetz72Hanmac
authored andcommitted
Use absolute path for sound files.
1 parent 300e039 commit b74c0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forge-gui-mobile/src/forge/sound/AudioClip.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static AudioClip createClip(String filename) {
3535

3636
public static AudioClip createClip(File file) {
3737
if(file == null) return null;
38-
FileHandle fileHandle = new FileHandle(file);
38+
FileHandle fileHandle = Gdx.files.absolute(file.getPath());
3939
if(!fileHandle.exists()) return null;
4040
return new AudioClip(fileHandle);
4141
}

0 commit comments

Comments
 (0)