public void HandleDeprecatedSettings() { // Update Recent and Selected login setting names. if (File.KeyExists("Recent", SECTION_AUTOLOG)) { File.Write(LOGIN_RECENT_ACCOUNT, File.Read("Recent", SECTION_AUTOLOG), SECTION_AUTOLOG); File.DeleteKey("Recent", SECTION_AUTOLOG); } if (File.KeyExists("RecentAcc", SECTION_AUTOLOG)) { File.Write(RECENT_ACCOUNT_INDEX, File.Read("RecentAcc", SECTION_AUTOLOG), SECTION_AUTOLOG); File.DeleteKey("RecentAcc", SECTION_AUTOLOG); } if (File.KeyExists("Selected", SECTION_AUTOLOG)) { File.Write(LOGIN_SELECTED_ACCOUNT, File.Read("Selected", SECTION_AUTOLOG), SECTION_AUTOLOG); File.DeleteKey("Selected", SECTION_AUTOLOG); } if (File.KeyExists("SelectedAcc", SECTION_AUTOLOG)) { File.Write(SELECTED_ACCOUNT_INDEX, File.Read("SelectedAcc", SECTION_AUTOLOG), SECTION_AUTOLOG); File.DeleteKey("SelectedAcc", SECTION_AUTOLOG); } // Move Steam file path to it's own section. if (File.KeyExists(SECTION_STEAM, SECTION_GENERAL)) { File.Write(STEAM_PATH, File.Read(SECTION_STEAM, SECTION_GENERAL), SECTION_STEAM); File.DeleteKey(SECTION_STEAM, SECTION_GENERAL); } // Move button size to 'Customize' section. if (File.KeyExists(BUTTON_SIZE, SECTION_GENERAL)) { File.Write(BUTTON_SIZE, File.Read(BUTTON_SIZE, SECTION_GENERAL), SECTION_CUSTOMIZE); File.DeleteKey(BUTTON_SIZE, SECTION_GENERAL); } // Update developer launch parameter. if (File.KeyExists("developer", SECTION_PARAMETERS)) { File.Write(DEVELOPER_PARAMETER, File.Read("developer", SECTION_PARAMETERS), SECTION_PARAMETERS); File.DeleteKey("developer", SECTION_PARAMETERS); } }
public void HandleDeprecatedSettings() { // Update Recent and Selected login setting names. if (File.KeyExists("Recent", "AutoLog")) { File.Write("LoginRecentAccount", File.Read("Recent", "AutoLog"), "AutoLog"); File.DeleteKey("Recent", "AutoLog"); } if (File.KeyExists("RecentAcc", "AutoLog")) { File.Write("RecentAccountIndex", File.Read("RecentAcc", "AutoLog"), "AutoLog"); File.DeleteKey("RecentAcc", "AutoLog"); } if (File.KeyExists("Selected", "AutoLog")) { File.Write("LoginSelectedAccount", File.Read("Selected", "AutoLog"), "AutoLog"); File.DeleteKey("Selected", "AutoLog"); } if (File.KeyExists("SelectedAcc", "AutoLog")) { File.Write("SelectedAccountIndex", File.Read("SelectedAcc", "AutoLog"), "AutoLog"); File.DeleteKey("SelectedAcc", "AutoLog"); } // Move Steam file path to it's own section. if (File.KeyExists("Steam", "Settings")) { File.Write("Path", File.Read("Steam", "Settings"), "Steam"); File.DeleteKey("Steam", "Settings"); } // Move button size to 'Customize' section. if (File.KeyExists("ButtonSize", "Settings")) { File.Write("ButtonSize", File.Read("ButtonSize", "Settings"), "Customize"); File.DeleteKey("ButtonSize", "Settings"); } }