Don't search for "fallback" button types except in the "common"

note skin.  It's a little faster, and still self-consistent.
This commit is contained in:
Glenn Maynard
2004-02-17 08:20:56 +00:00
parent 2e24ec1586
commit e6401712d4
-8
View File
@@ -237,19 +237,11 @@ CString NoteSkinManager::GetPathToFromNoteSkinAndButton( CString NoteSkin, CStri
if( !ret.empty() ) // we found something
return ret;
ret = GetPathToFromDir( GetNoteSkinDir(NoteSkin), "Fallback "+sElement, bOptional );
if( !ret.empty() ) // we found something
return ret;
// Search game default NoteSkin
ret = GetPathToFromDir( GetNoteSkinDir(GAME_BASE_NOTESKIN_NAME), sButtonName+" "+sElement, bOptional );
if( !ret.empty() ) // we found something
return ret;
ret = GetPathToFromDir( GetNoteSkinDir(GAME_BASE_NOTESKIN_NAME), "Fallback "+sElement, bOptional );
if( !ret.empty() ) // we found something
return ret;
// Search global default NoteSkin
ret = GetPathToFromDir( GLOBAL_BASE_NOTESKIN_DIR, "Fallback "+sElement, bOptional );
if( !ret.empty() ) // we found something