some small changes to background/disc graphic finding logic.
This commit is contained in:
+4
-3
@@ -613,8 +613,9 @@ void Song::TidyUpData( bool fromCache, bool duringCache )
|
|||||||
|
|
||||||
// find an image with "bg" or "background" in the file name
|
// find an image with "bg" or "background" in the file name
|
||||||
vector<RString> arrayPossibleBGs;
|
vector<RString> arrayPossibleBGs;
|
||||||
GetImageDirListing( m_sSongDir + "*bg*", arrayPossibleBGs );
|
|
||||||
GetImageDirListing( m_sSongDir + "*background*", arrayPossibleBGs );
|
GetImageDirListing( m_sSongDir + "*background*", arrayPossibleBGs );
|
||||||
|
// don't match e.g. "subgroup", "hobgoblin", etc.
|
||||||
|
GetImageDirListing( m_sSongDir + "*bg", arrayPossibleBGs );
|
||||||
if( !arrayPossibleBGs.empty() )
|
if( !arrayPossibleBGs.empty() )
|
||||||
m_sBackgroundFile = arrayPossibleBGs[0];
|
m_sBackgroundFile = arrayPossibleBGs[0];
|
||||||
}
|
}
|
||||||
@@ -644,8 +645,8 @@ void Song::TidyUpData( bool fromCache, bool duringCache )
|
|||||||
{
|
{
|
||||||
// a rectangular graphic, not to be confused with CDImage above.
|
// a rectangular graphic, not to be confused with CDImage above.
|
||||||
vector<RString> arrayPossibleDiscImages;
|
vector<RString> arrayPossibleDiscImages;
|
||||||
GetImageDirListing( m_sSongDir + "* Disc", arrayPossibleDiscImages );
|
GetImageDirListing( m_sSongDir + "* disc", arrayPossibleDiscImages );
|
||||||
GetImageDirListing( m_sSongDir + "* Title", arrayPossibleDiscImages );
|
GetImageDirListing( m_sSongDir + "* title", arrayPossibleDiscImages );
|
||||||
if( !arrayPossibleDiscImages.empty() )
|
if( !arrayPossibleDiscImages.empty() )
|
||||||
m_sDiscFile = arrayPossibleDiscImages[0];
|
m_sDiscFile = arrayPossibleDiscImages[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user