From d81611471f632b2a0409e2d71529ffcbfc6e31a5 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Thu, 12 Oct 2023 23:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=BC=80=E6=97=B6=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E5=8F=AA=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 2 ++ VPet-Simulator.Windows/Properties/launchSettings.json | 3 +-- VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs | 6 ++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 8a28145..6aed0d6 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -969,6 +969,8 @@ namespace VPet_Simulator.Windows public MainWindow(string prefixsave) { PrefixSave = prefixsave; + if (!PrefixSave.StartsWith("-")) + PrefixSave = '-' + prefixsave; //处理ARGS Args = new LPS_D(); diff --git a/VPet-Simulator.Windows/Properties/launchSettings.json b/VPet-Simulator.Windows/Properties/launchSettings.json index b1259f9..3e7b8fa 100644 --- a/VPet-Simulator.Windows/Properties/launchSettings.json +++ b/VPet-Simulator.Windows/Properties/launchSettings.json @@ -1,8 +1,7 @@ { "profiles": { "VPet-Simulator.Windows": { - "commandName": "Project", - "commandLineArgs": "prefix#test:|" + "commandName": "Project" } } } \ No newline at end of file diff --git a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs index 122e8dc..f19fa3b 100644 --- a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs @@ -1174,7 +1174,7 @@ namespace VPet_Simulator.Windows if (Directory.Exists(ExtensionValue.BaseDirectory + @"\Saves")) { foreach (var file in new DirectoryInfo(ExtensionValue.BaseDirectory + @"\Saves") - .GetFiles("Save*.lps").OrderByDescending(x => x.LastWriteTime)) + .GetFiles($"Save{mw.PrefixSave}_*.lps").OrderByDescending(x => x.LastWriteTime)) { CBSaveReLoad.Items.Add(file.Name.Split('.').First()); } @@ -1361,9 +1361,7 @@ namespace VPet_Simulator.Windows mw.Core.Save = mw.GameSavesData.GameSave; if (oldsave.HashCheck) // 对于重开无作弊的玩家保留统计 mw.GameSavesData.Statistics = oldsave.Statistics; - mw.HashCheck = true; - CBSaveReLoad.IsEnabled = false; - BtnSaveReload.IsEnabled = false; + mw.HashCheck = true; MessageBoxX.Show("重置成功".Translate()); } }