git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1306 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -35,5 +35,15 @@ namespace OpenRa.Game
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public bool GetValue(string key, bool defaultValue)
|
||||
{
|
||||
bool result;
|
||||
|
||||
if (!bool.TryParse(GetValue(key, defaultValue.ToString()), out result))
|
||||
result = defaultValue;
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user