private void MigrateSettings(string oldIniFileName) { if (!File.Exists(base.FileName)) { var oldIni = new IniFile(oldIniFileName); var charSel = new Global.ClientCharSelectDefaults(new Point(1920, 1080)); SaveSetting(oldIni.GetSettingOr("CharacterSelectScrollBarTopX", "ClickLocations", charSel.ScrollBarTopX), "scrollBarTopX", "characterSelect"); SaveSetting(oldIni.GetSettingOr("CharacterSelectScrollBarTopY", "ClickLocations", charSel.ScrollBarTopY), "scrollBarTopY", "characterSelect"); SaveSetting(oldIni.GetSettingOr("CharSlotX", "ClickLocations", charSel.CharSlotX), "charSlotX", "characterSelect"); SaveSetting(oldIni.GetSettingOr("TopSlotY", "ClickLocations", charSel.TopSlotY), "topSlotY", "characterSelect"); SaveSetting(oldIni.GetSettingOr("VisibleCharacterSelectSlots", "KeyBindAndUi", charSel.VisibleSlots), "visibleSlots", "characterSelect"); SaveSetting(oldIni.GetSettingOr("ScrollsToAlignBottomSlot", "KeyBindAndUi", charSel.ScrollsToAlignBottomSlot), "scrollsToAlignBottomSlot", "characterSelect"); } }