forked from External/mage
add UI to adjust BGM path
This commit is contained in:
parent
407cbc0054
commit
70ebb6bfbc
4 changed files with 120 additions and 10 deletions
|
|
@ -21,7 +21,9 @@ public class MusicPlayer {
|
|||
|
||||
//open file and add list
|
||||
private boolean open(){
|
||||
filepath = Constants.BASE_MUSICS_PATH;
|
||||
String path = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_MUSICS_PATH, "true");
|
||||
filepath = path + File.separator;
|
||||
if(path == null) filepath = Constants.BASE_MUSICS_PATH;
|
||||
filelist.removeAll();
|
||||
File filedir = new File(filepath);
|
||||
File[] fileread = filedir.listFiles();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue