diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index c87708f7b6..1e93bc37a3 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -360,8 +360,18 @@ try_element_again: for( int i = 0; asset_masks[i]; ++i ) { /* No extension means directories. */ - if( asset_masks[i][0] == 0 && !IsADirectory(asPaths[p]) ) - continue; + if( asset_masks[i][0] == 0 ) + { + if( !IsADirectory(asPaths[p]) ) + continue; + + vector vs; + GetDirListing( asPaths[p]+"/*", vs, false, false ); + StripCvs( vs ); + bool bDirIsEmpty = vs.empty(); + if( bDirIsEmpty ) + continue; + } if( ext == asset_masks[i] || !strcmp(asset_masks[i], "*") ) {