merge/simplify

This commit is contained in:
Glenn Maynard
2006-12-18 22:06:23 +00:00
parent 276de65c4d
commit ef9bf1835e
6 changed files with 12 additions and 34 deletions
+2 -7
View File
@@ -4,12 +4,7 @@
#include "RageUtil.h"
#include "Foreach.h"
static DriverList g_pRegistrees;
RegisterSoundDriver::RegisterSoundDriver( const istring &sName, CreateRageDriverFn pfn )
{
g_pRegistrees.Add( sName, pfn );
}
DriverList RageSoundDriver::m_pDriverList;
RageSoundDriver *RageSoundDriver::Create( const RString &drivers )
{
@@ -18,7 +13,7 @@ RageSoundDriver *RageSoundDriver::Create( const RString &drivers )
FOREACH_CONST( RString, DriversToTry, Driver )
{
RageDriver *pDriver = g_pRegistrees.Create( *Driver );
RageDriver *pDriver = m_pDriverList.Create( *Driver );
if( pDriver == NULL )
{
LOG->Trace( "Unknown sound driver: %s", Driver->c_str() );