aboutsummaryrefslogtreecommitdiffstats
path: root/src/screens
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-11-09 21:00:17 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-11-09 21:00:17 +0000
commit85c7cf68848e3640238cfaa631305ae87e59cf66 (patch)
tree82d39e3b18cf044fcc0cbe936a2938eb57a36a77 /src/screens
parent5770b03c014bffe3318b96dcb935ff3438fd12fa (diff)
downloadusdx-85c7cf68848e3640238cfaa631305ae87e59cf66.tar.gz
usdx-85c7cf68848e3640238cfaa631305ae87e59cf66.tar.xz
usdx-85c7cf68848e3640238cfaa631305ae87e59cf66.zip
fixed folders=on bug for the moment
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1941 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/UScreenSong.pas13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/screens/UScreenSong.pas b/src/screens/UScreenSong.pas
index 5fa6de39..9a534c51 100644
--- a/src/screens/UScreenSong.pas
+++ b/src/screens/UScreenSong.pas
@@ -868,10 +868,17 @@ begin
Song := CatSongs.Song[I];
- // if cover-image is not found then show 'no cover'
- CoverFile := Song.Path.Append(Song.Cover);
- if (not CoverFile.IsFile()) then
+ if not Song.Main then
+ begin // to-do : load category covers again...
+ // just a workaround to fic folders=on for the moment...
+ // if cover-image is not found then show 'no cover'
+ CoverFile := Song.Path.Append(Song.Cover);
+ if (not CoverFile.IsFile()) then
+ Song.Cover := PATH_NONE;
+ end
+ else
Song.Cover := PATH_NONE;
+
if (Song.Cover.IsUnset) then
CoverFile := Skin.GetTextureFileName('SongCover');