This commit is contained in:
SoulliesOfficial
2025-08-19 08:13:47 -04:00
parent 66ec7fb4a9
commit 2e4398b9c1
175 changed files with 146598 additions and 2124247 deletions

View File

@@ -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;
}