From 517f4d956ab6e9ebe7e05ce5980a5ea3e47014ae Mon Sep 17 00:00:00 2001
From: Ding Yuntian <1491671119@qq.com>
Date: Mon, 20 Jul 2026 18:09:54 +0800
Subject: [PATCH] =?UTF-8?q?refactor(savesystem):=20=E6=AD=A3=E5=BC=8F?=
=?UTF-8?q?=E5=AD=98=E6=A1=A3=E7=9B=AE=E5=BD=95=E6=9B=B4=E5=90=8D=E4=B8=BA?=
=?UTF-8?q?demo=5Fsaves?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Editor/SaveSystemValidation/SaveSystemTestWindow.cs | 8 ++++----
Assets/Scripts/AssetRefs/ConstRef.cs | 2 +-
Assets/Scripts/SaveSystem/README.md | 2 +-
Assets/Scripts/SaveSystem/TestSaveArchive.cs | 2 +-
Docs/存档系统设计方案.md | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Assets/Editor/SaveSystemValidation/SaveSystemTestWindow.cs b/Assets/Editor/SaveSystemValidation/SaveSystemTestWindow.cs
index f2f5eb7d7..134b3df22 100644
--- a/Assets/Editor/SaveSystemValidation/SaveSystemTestWindow.cs
+++ b/Assets/Editor/SaveSystemValidation/SaveSystemTestWindow.cs
@@ -167,7 +167,7 @@ namespace AibisDream.SaveSystem.Editor
EditorGUILayout.LabelField("存读档测试工具", EditorStyles.boldLabel);
EditorGUILayout.HelpBox(
"用于 Play Mode 下验证自动存档、槽位读档与 testsavs 测试归档。\n" +
- "正式存档目录: saves/ | 测试归档: testsavs/(每次自动存档独立子文件夹)",
+ "正式存档目录: demo_saves/ | 测试归档: testsavs/(每次自动存档独立子文件夹)",
MessageType.Info);
if (!Application.isPlaying)
@@ -193,7 +193,7 @@ namespace AibisDream.SaveSystem.Editor
EditorGUILayout.LabelField($"testsavs 路径: {ConstRef.TestAutoSaveArchivePath}", EditorStyles.miniLabel);
EditorGUILayout.HelpBox(
- "开启后:每次 AutoSave 仅在 testsavs 下新建一份独立存档,不写入、不覆盖 saves/slot_0。\n" +
+ "开启后:每次 AutoSave 仅在 testsavs 下新建一份独立存档,不写入、不覆盖 demo_saves/slot_0。\n" +
"存多少次就保留多少份;关闭后恢复正式行为(仅覆盖 slot_0)。",
MessageType.None);
}
@@ -224,7 +224,7 @@ namespace AibisDream.SaveSystem.Editor
private void DrawSlotRestoreSection()
{
EditorGUILayout.LabelField("从正式槽位读档", EditorStyles.boldLabel);
- EditorGUILayout.LabelField($"saves 路径: {ConstRef.SaveFilePath}", EditorStyles.miniLabel);
+ EditorGUILayout.LabelField($"demo_saves 路径: {ConstRef.SaveFilePath}", EditorStyles.miniLabel);
var latest = SlotManager.GetLatestSlotIndex();
EditorGUILayout.LabelField($"最近槽位: {(latest.HasValue ? $"slot_{latest.Value}" : "无")}");
@@ -391,7 +391,7 @@ namespace AibisDream.SaveSystem.Editor
using (new EditorGUILayout.HorizontalScope())
{
- if (GUILayout.Button("打开 saves 文件夹"))
+ if (GUILayout.Button("打开 demo_saves 文件夹"))
{
OpenDirectory(ConstRef.SaveFilePath);
}
diff --git a/Assets/Scripts/AssetRefs/ConstRef.cs b/Assets/Scripts/AssetRefs/ConstRef.cs
index a38854605..c87f5a242 100644
--- a/Assets/Scripts/AssetRefs/ConstRef.cs
+++ b/Assets/Scripts/AssetRefs/ConstRef.cs
@@ -26,7 +26,7 @@ namespace AibisDream.Utility
public static readonly string TestSaveFilePath =
Path.GetFullPath(Path.Combine(Application.dataPath, "..", "DevSaveFiles"));
- public static readonly string SaveFilePath = Path.Combine(Application.persistentDataPath, "AllOurBrokenParts", "saves");
+ public static readonly string SaveFilePath = Path.Combine(Application.persistentDataPath, "AllOurBrokenParts", "demo_saves");
/// 测试阶段自动存档历史目录;每次自动存档独立子文件夹,不覆盖正式槽位。
public static readonly string TestAutoSaveArchivePath =
diff --git a/Assets/Scripts/SaveSystem/README.md b/Assets/Scripts/SaveSystem/README.md
index 11cec161e..d77a38faf 100644
--- a/Assets/Scripts/SaveSystem/README.md
+++ b/Assets/Scripts/SaveSystem/README.md
@@ -67,7 +67,7 @@ Yarn 脚本:
逻辑集中在 `SavePointEvaluator.cs`,**不新增**独立 Tracker 文件。
-正式槽位路径:`persistentDataPath/AllOurBrokenParts/saves/slot_x/{snapshot.json, meta.json, thumbnail.png}`
+正式槽位路径:`persistentDataPath/AllOurBrokenParts/demo_saves/slot_x/{snapshot.json, meta.json, thumbnail.png}`
P1 测试落盘路径:`persistentDataPath/AllOurBrokenParts/snapshot_test/latest_snapshot.json`(首次访问槽位系统时会尝试迁移到 `slot_0`)
diff --git a/Assets/Scripts/SaveSystem/TestSaveArchive.cs b/Assets/Scripts/SaveSystem/TestSaveArchive.cs
index a17642f4b..545400a1a 100644
--- a/Assets/Scripts/SaveSystem/TestSaveArchive.cs
+++ b/Assets/Scripts/SaveSystem/TestSaveArchive.cs
@@ -10,7 +10,7 @@ namespace AibisDream.SaveSystem
{
///
/// 测试存档模式:每次自动存档写入 下的独立子目录。
- /// 开启后不写入 slot_0,存多少次就保留多少份,与正式 saves/ 完全隔离。
+ /// 开启后不写入 slot_0,存多少次就保留多少份,与正式 demo_saves/ 完全隔离。
///
public static class TestSaveArchive
{
diff --git a/Docs/存档系统设计方案.md b/Docs/存档系统设计方案.md
index c52b788d1..7923fff6d 100644
--- a/Docs/存档系统设计方案.md
+++ b/Docs/存档系统设计方案.md
@@ -67,7 +67,7 @@
### 2. 存档文件组织(全新)
-- 槽位制、sidecar、原子写、截图缩略图——**P2 基础实现已落地**,统一由 `SlotManager` / `SlotDirectory` 写入 `persistentDataPath/AllOurBrokenParts/saves/slot_x/`。Steam 云存档目前仅保留 `CloudSaveManager` / `ICloudSaveBackend` 扩展点,尚未接真实平台后端。
+- 槽位制、sidecar、原子写、截图缩略图——**P2 基础实现已落地**,统一由 `SlotManager` / `SlotDirectory` 写入 `persistentDataPath/AllOurBrokenParts/demo_saves/slot_x/`。Steam 云存档目前仅保留 `CloudSaveManager` / `ICloudSaveBackend` 扩展点,尚未接真实平台后端。
---