mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复设置丢失导致存档未按顺序继续存档
This commit is contained in:
parent
e39157445c
commit
8e822cb3ef
@ -232,6 +232,7 @@ namespace VPet_Simulator.Windows.Interface
|
|||||||
public int SaveTimes
|
public int SaveTimes
|
||||||
{
|
{
|
||||||
get => GetInt("savetimes", 100000);
|
get => GetInt("savetimes", 100000);
|
||||||
|
set => SetInt("savetimes", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private int presslength;
|
private int presslength;
|
||||||
|
@ -287,6 +287,11 @@ namespace VPet_Simulator.Windows
|
|||||||
return i;
|
return i;
|
||||||
return 0;
|
return 0;
|
||||||
}).ToList();
|
}).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--)
|
for (int i = ds.Count - 1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
var latestsave = ds[i];
|
var latestsave = ds[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user