add StripMacResourceForks(); hopefully prevents things like issue 178 ( http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=178 ) from happening again
This commit is contained in:
@@ -178,6 +178,7 @@ void ThemeManager::GetThemeNames( vector<RString>& AddTo )
|
||||
{
|
||||
GetDirListing( SpecialFiles::THEMES_DIR + "*", AddTo, true );
|
||||
StripCvsAndSvn( AddTo );
|
||||
StripMacResourceForks( AddTo );
|
||||
}
|
||||
|
||||
void ThemeManager::GetSelectableThemeNames( vector<RString>& AddTo )
|
||||
@@ -462,6 +463,7 @@ void ThemeManager::RunLuaScripts( const RString &sMask )
|
||||
GetDirListing( sThemeDir + "Scripts/*", arrayScriptDirs, true );
|
||||
SortRStringArray( arrayScriptDirs );
|
||||
StripCvsAndSvn( arrayScriptDirs );
|
||||
StripMacResourceForks( arrayScriptDirs );
|
||||
FOREACH_CONST( RString, arrayScriptDirs, s ) // foreach dir in /Scripts/
|
||||
{
|
||||
// Find all Lua files in this directory, add them to asElementPaths
|
||||
|
||||
Reference in New Issue
Block a user