-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "stop scanning game instance folder for VLC binaries"
This reverts commit 31fd901.
- Loading branch information
1 parent
79055e5
commit 3963b02
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/main/java/me/srrapero720/watermedia/api/config/support/CustomDirectoryProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package me.srrapero720.watermedia.api.config.support; | ||
|
||
import me.srrapero720.watermedia.WaterMedia; | ||
import uk.co.caprica.vlcj.discovery.provider.DiscoveryDirectoryProvider; | ||
|
||
public class CustomDirectoryProvider implements DiscoveryDirectoryProvider { | ||
@Override | ||
public int priority() { | ||
return 5; | ||
} | ||
|
||
@Override | ||
public boolean supported() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public String[] directories() { | ||
return new String[] {WaterMedia.getLoader().tempDir().resolve("videolan").toAbsolutePath().toString()}; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ources/META-INF/services/uk.co.caprica.vlcj.discovery.provider.DiscoveryDirectoryProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
me.srrapero720.watermedia.api.config.support.CustomDirectoryProvider |