Load custom settings from settings.ini (reading from commandline currently doesn't work)
This commit is contained in:
@@ -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() ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user