public Settings() { st = this; SettingJson sj = new SettingJson(); if (sj != null) { list = sj.WriteSettings(); } }
//read settings from setting files public static void readSettingFile() { try { var JsonData = JsonConvert.DeserializeObject<SettingJson>(File.ReadAllText(SETTING_FILE)); jsonSetting = JsonData; } catch (Exception) { SteamTwoProperties.reset(); SteamTwoProperties.updateSettingFile(); } }
public static void reset() { jsonSetting = new SettingJson() { encryptedSetting = false, autoAddFriendSetting = false, chatComSetting = false, encryptedKeySetting = "FteUuLPNgH2K7YjGhHbPGw==", closeStemLaunchSetting = false, alwayRunSetting = false, copyPasswordSetting = false, multipleBotSetting = false, badAttemptSetting = true, chatSetting = false, autoStartSetting = false, autoLoginSetting = false }; }
//reset resstings public static void reset() { jsonSetting = new SettingJson() { encryptedSetting = false, autoAddFriendSetting = false, chatComSetting = false, encryptedKeySetting = "FteUuLPNgH2K7YjGhHbPGw==", closeStemLaunchSetting = false, copyPasswordSetting = false, multipleBotSetting = false, badAttemptSetting = true, chatSetting = false, autoStartSetting = false, autoLoginSetting = false, notifyOnMessageSetting = false, SDALinkSetting = "", selectedAccountSetting = "", forwardCheckSetting = false, forwardSetting = "", steamLocation = "C:\\Program Files (x86)\\Steam\\Steam.exe" }; }