big fix
This commit is contained in:
@@ -186,7 +186,6 @@ namespace Ichni
|
||||
|
||||
public void LoadExport(string projectName)
|
||||
{
|
||||
|
||||
LoadProjectInfoExport(projectName);
|
||||
LoadSongInfoExport(projectName);
|
||||
LoadCommandScriptsExport(projectName);
|
||||
@@ -482,7 +481,7 @@ namespace Ichni
|
||||
private void AutoSave()
|
||||
{
|
||||
List<string> saveFiles = GetSortedSaveFiles();
|
||||
|
||||
|
||||
if (saveFiles.Count > 0)
|
||||
{
|
||||
// 删除最旧的存档(如果超过数量)
|
||||
@@ -491,8 +490,14 @@ namespace Ichni
|
||||
string oldestSave = saveFiles[saveFiles.Count - 1];
|
||||
File.Delete(oldestSave);
|
||||
saveFiles.RemoveAt(saveFiles.Count - 1);
|
||||
|
||||
LogWindow.Log("AutoSave finished, the oldest file deleted");
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
LogWindow.Log("AutoSave finished");
|
||||
}
|
||||
|
||||
// 依次重命名存档
|
||||
for (int i = saveFiles.Count - 1; i >= 0; i--)
|
||||
{
|
||||
@@ -521,7 +526,7 @@ namespace Ichni
|
||||
Directory.CreateDirectory(autoSavePath);
|
||||
}
|
||||
|
||||
List<string> saveFiles = new List<string>(Directory.GetFiles(autoSavePath, "AutoSave_*.es3"));
|
||||
List<string> saveFiles = new List<string>(Directory.GetFiles(autoSavePath, "AutoSave_*.json"));
|
||||
saveFiles.Sort(string.Compare);
|
||||
return saveFiles;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user