Load custom settings from settings.ini (reading from commandline currently doesn't work)

This commit is contained in:
Paul Chote
2010-01-02 02:19:53 -08:00
parent 0a7ffc8cc9
commit df1c49dacb
6 changed files with 57 additions and 48 deletions

View File

@@ -10,8 +10,8 @@ namespace OpenRa.Game.GameRules
{
foreach( var x in ini )
{
var field = self.GetType().GetField( x.Key );
field.SetValue( self, GetValue( field.FieldType, x.Value ) );
var field = self.GetType().GetField( x.Key.Trim() );
field.SetValue( self, GetValue( field.FieldType, x.Value.Trim() ) );
}
}