diff --git a/VPet-Simulator.Windows.Interface/Setting.cs b/VPet-Simulator.Windows.Interface/Setting.cs index 3086d82..4df6626 100644 --- a/VPet-Simulator.Windows.Interface/Setting.cs +++ b/VPet-Simulator.Windows.Interface/Setting.cs @@ -232,6 +232,7 @@ namespace VPet_Simulator.Windows.Interface public int SaveTimes { get => GetInt("savetimes", 100000); + set => SetInt("savetimes", value); } private int presslength; diff --git a/VPet-Simulator.Windows/MainWindow.xaml.cs b/VPet-Simulator.Windows/MainWindow.xaml.cs index e95be3c..b8ca5be 100644 --- a/VPet-Simulator.Windows/MainWindow.xaml.cs +++ b/VPet-Simulator.Windows/MainWindow.xaml.cs @@ -287,6 +287,11 @@ namespace VPet_Simulator.Windows return i; return 0; }).ToList(); + int.TryParse(ds.Last().Split('_')[1].Split('.')[0], out int lastid); + if (Set.SaveTimes < lastid) + { + Set.SaveTimes = lastid; + } for (int i = ds.Count - 1; i >= 0; i--) { var latestsave = ds[i];