This commit is contained in:
Glenn Maynard
2005-08-26 19:05:10 +00:00
parent 4cf9334b9f
commit 1507fb20e1
+3 -1
View File
@@ -6,6 +6,7 @@
#include "BGAnimation.h"
#include "IniFile.h"
#include "ThemeManager.h"
#include "RageFileManager.h"
#include "RageLog.h"
#include "song.h"
#include "GameState.h"
@@ -58,7 +59,8 @@ retry:
// If we know this is an exact match, don't bother with the GetDirListing,
// so "foo" doesn't partial match "foobar" if "foo" exists.
if( !IsAFile(sPath) && !IsADirectory(sPath) )
RageFileManager::FileType ft = FILEMAN->GetFileType( sPath );
if( ft != RageFileManager::TYPE_FILE && ft != RageFileManager::TYPE_DIR )
{
CStringArray asPaths;
GetDirListing( sPath + "*", asPaths, false, true ); // return path too