public static bool getFilterGame(string name) { bool ret = true; if (!Boolean.TryParse(SimpleConfig.ReadValue("FilterGames_" + name, "true"), out ret)) { ret = true; SimpleConfig.WriteValue("FilterGames_" + name, true.ToString(CultureInfo.InvariantCulture)); } return(ret); }
static Prefs() { string hln = SimpleConfig.ReadValue("Options_HideLoginNotifications"); _hideLoginNotifications = hln == null || hln == "false" ? "false" : "true"; }
static Prefs() { _hideLoginNotifications = SimpleConfig.ReadValue("Options_HideLoginNotifications", "false"); }