Use wildcard searching for redirs, too. A file "foo 1x5.png" should be

replacable with a file "foo 1x5.redir".
This commit is contained in:
Glenn Maynard
2004-04-06 00:46:05 +00:00
parent a253dd8290
commit c97fc09b8d
+3 -2
View File
@@ -247,11 +247,12 @@ try_element_again:
}
else // look for all files starting with sFileName that have types we can use
{
const CString wildcard = (category == BGAnimations? "":"*");
/* First, look for redirs. */
GetDirListing( sThemeDir + sCategory + "/" + ClassAndElementToFileName(sClassName,sElement) + ".redir",
GetDirListing( sThemeDir + sCategory + "/" + ClassAndElementToFileName(sClassName,sElement) + wildcard + ".redir",
asElementPaths, false, true );
const CString wildcard = (category == BGAnimations? "":"*");
CStringArray asPaths;
GetDirListing( sThemeDir + sCategory + "/" + ClassAndElementToFileName(sClassName,sElement) + wildcard,
asPaths, bDirsOnly, true );