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:
@@ -237,19 +237,11 @@ CString NoteSkinManager::GetPathToFromNoteSkinAndButton( CString NoteSkin, CStri
|
|||||||
if( !ret.empty() ) // we found something
|
if( !ret.empty() ) // we found something
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = GetPathToFromDir( GetNoteSkinDir(NoteSkin), "Fallback "+sElement, bOptional );
|
|
||||||
if( !ret.empty() ) // we found something
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
// Search game default NoteSkin
|
// Search game default NoteSkin
|
||||||
ret = GetPathToFromDir( GetNoteSkinDir(GAME_BASE_NOTESKIN_NAME), sButtonName+" "+sElement, bOptional );
|
ret = GetPathToFromDir( GetNoteSkinDir(GAME_BASE_NOTESKIN_NAME), sButtonName+" "+sElement, bOptional );
|
||||||
if( !ret.empty() ) // we found something
|
if( !ret.empty() ) // we found something
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = GetPathToFromDir( GetNoteSkinDir(GAME_BASE_NOTESKIN_NAME), "Fallback "+sElement, bOptional );
|
|
||||||
if( !ret.empty() ) // we found something
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
// Search global default NoteSkin
|
// Search global default NoteSkin
|
||||||
ret = GetPathToFromDir( GLOBAL_BASE_NOTESKIN_DIR, "Fallback "+sElement, bOptional );
|
ret = GetPathToFromDir( GLOBAL_BASE_NOTESKIN_DIR, "Fallback "+sElement, bOptional );
|
||||||
if( !ret.empty() ) // we found something
|
if( !ret.empty() ) // we found something
|
||||||
|
|||||||
Reference in New Issue
Block a user