git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1306 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-18 15:43:02 +00:00
parent 32c1461193
commit 471759d25c
9 changed files with 90 additions and 11 deletions

View File

@@ -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;
}
}
}