fix error fallback
This commit is contained in:
@@ -384,12 +384,12 @@ bool BackgroundImpl::Layer::CreateBackground( const Song *pSong, const Backgroun
|
|||||||
if( vsPaths.empty() )
|
if( vsPaths.empty() )
|
||||||
{
|
{
|
||||||
LOG->Warn( "BackgroundEffect '%s' is missing.",sEffect.c_str() );
|
LOG->Warn( "BackgroundEffect '%s' is missing.",sEffect.c_str() );
|
||||||
sEffect = SBE_Centered;
|
BackgroundUtil::GetBackgroundEffects( SBE_Centered, vsPaths, vsThrowAway );
|
||||||
}
|
}
|
||||||
else if( vsPaths.size() > 1 )
|
else if( vsPaths.size() > 1 )
|
||||||
{
|
{
|
||||||
LOG->Warn( "BackgroundEffect '%s' has more than one match.",sEffect.c_str() );
|
LOG->Warn( "BackgroundEffect '%s' has more than one match.",sEffect.c_str() );
|
||||||
sEffect = SBE_Centered;
|
BackgroundUtil::GetBackgroundEffects( SBE_Centered, vsPaths, vsThrowAway );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user