diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-15 18:40:22 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-15 18:40:22 +0000 |
commit | 0a2abc145a59bfb2b0e0402a86115fa2da53c681 (patch) | |
tree | 8bdbe6a44697096bca21803d7c5ead94c8c12438 /Game/Code/Classes/USongs.pas | |
parent | 0c5f07f9e3b9bcc7bf2ae9c81c7d6525514fef56 (diff) | |
download | usdx-0a2abc145a59bfb2b0e0402a86115fa2da53c681.tar.gz usdx-0a2abc145a59bfb2b0e0402a86115fa2da53c681.tar.xz usdx-0a2abc145a59bfb2b0e0402a86115fa2da53c681.zip |
- Support for multiple song/cover paths.
- Add multiple Song-Paths to the Ini file:
[Directories]
SongDir1=C:\...
SongDir2=D:\...
SongDirA=D:\...
- UIni.pas clean-up
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1266 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/USongs.pas | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Game/Code/Classes/USongs.pas b/Game/Code/Classes/USongs.pas index 2c8e3587..710cd44f 100644 --- a/Game/Code/Classes/USongs.pas +++ b/Game/Code/Classes/USongs.pas @@ -195,6 +195,8 @@ begin end; procedure TSongs.int_LoadSongList; +var + I: integer; begin try fProcessing := true; @@ -202,10 +204,8 @@ begin Log.LogStatus('Searching For Songs', 'SongList'); // browse directories - BrowseDir(SongPath); - - if UserSongPath <> SongPath then - BrowseDir(UserSongPath); + for I := 0 to SongPaths.Count-1 do + BrowseDir(SongPaths[I]); if assigned( CatSongs ) then CatSongs.Refresh; |