Simple ones.
This commit is contained in:
@@ -13,19 +13,19 @@ void LightsDriver::Create( const RString &sDrivers, vector<LightsDriver *> &Add
|
||||
vector<RString> asDriversToTry;
|
||||
split( sDrivers, ",", asDriversToTry, true );
|
||||
|
||||
FOREACH_CONST( RString, asDriversToTry, Driver )
|
||||
for (RString const &Driver : asDriversToTry)
|
||||
{
|
||||
RageDriver *pRet = m_pDriverList.Create( *Driver );
|
||||
RageDriver *pRet = m_pDriverList.Create( Driver );
|
||||
if( pRet == NULL )
|
||||
{
|
||||
LOG->Trace( "Unknown lights driver: %s", Driver->c_str() );
|
||||
LOG->Trace( "Unknown lights driver: %s", Driver.c_str() );
|
||||
continue;
|
||||
}
|
||||
|
||||
LightsDriver *pDriver = dynamic_cast<LightsDriver *>( pRet );
|
||||
ASSERT( pDriver != NULL );
|
||||
|
||||
LOG->Info( "Lights driver: %s", Driver->c_str() );
|
||||
LOG->Info( "Lights driver: %s", Driver.c_str() );
|
||||
Add.push_back( pDriver );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user