allow VideoCardDefaults.ini to be non-consecutive
This commit is contained in:
@@ -307,9 +307,10 @@ RageDisplay *CreateDisplay()
|
|||||||
if(!ini.ReadFile())
|
if(!ini.ReadFile())
|
||||||
RageException::Throw( "Couldn't read Data/VideoCardDefaults.ini." );
|
RageException::Throw( "Couldn't read Data/VideoCardDefaults.ini." );
|
||||||
|
|
||||||
for( int i=0; true; i++ )
|
IniFile::const_iterator i;
|
||||||
|
for( i = ini.begin(); i != ini.end(); ++i )
|
||||||
{
|
{
|
||||||
CString sKey = ssprintf("%04d",i);
|
const CString &sKey = i->first;
|
||||||
|
|
||||||
CString sDriverRegex;
|
CString sDriverRegex;
|
||||||
if( !ini.GetValue( sKey, "DriverRegex", sDriverRegex ) )
|
if( !ini.GetValue( sKey, "DriverRegex", sDriverRegex ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user