From 0231c41f4611ff36642534577e31510ba848f14c Mon Sep 17 00:00:00 2001 From: ZouJin Date: Fri, 20 Oct 2023 21:27:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=9A=AE=E8=82=A4=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=80=89=E6=8B=A9=E5=BD=93=E5=89=8D=E7=8E=B0?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E5=A4=9A=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WinDesign/winGameSetting.xaml.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs index cb919f3..5f2290f 100644 --- a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs @@ -985,18 +985,23 @@ namespace VPet_Simulator.Windows case MessageBoxResult.Yes: var savename = mw.Pets[PetBox.SelectedIndex].Name; petbox_back(); + //如果有这个皮肤的多开,自动多开 + if (App.MutiSaves.Contains(savename)) + { + if (App.MainWindows.FirstOrDefault(x => x.PrefixSave.Trim('-') == savename) != null) + { + MessageBoxX.Show("当前多开已经加载".Translate()); + } + else + new MainWindow(savename).Show(); + return; + } foreach (var c in @"()#:|/\?*<>-") if (savename.Contains(c)) { MessageBoxX.Show("存档名不能包括特殊符号".Translate()); return; - } - if (App.MutiSaves.FirstOrDefault(x => x.ToLower() == savename.ToLower()) != null) - { - MessageBoxX.Show("存档名重复".Translate()); - return; - } - + } var lps = new LPS(mw.Set.ToString()); lps.SetInt("savetimes", 0); lps["gameconfig"].SetString("petgraph", savename);