From 16a7acee6180d082c034ca55c31f219594764e01 Mon Sep 17 00:00:00 2001
From: "ALIENJACK\\alien" <alienjack@foxmail.com>
Date: Wed, 16 Apr 2025 13:09:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E6=A1=A3=E6=96=87=E4=BB=B6=E6=94=B9?=
 =?UTF-8?q?=E4=B8=BA=E6=AF=8F=E4=B8=AA=E7=8B=AC=E7=AB=8B=E7=94=A8=E6=88=B7?=
 =?UTF-8?q?=E5=90=84=E8=87=AA=E6=8B=A5=E6=9C=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 AxibugEmuOnline.Client/Assets/Script/AppMain/App.cs         | 6 ++++++
 .../Script/AppMain/Manager/SaveSlotManager/SaveFile.cs      | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/App.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/App.cs
index 92ea219c..fba7703f 100644
--- a/AxibugEmuOnline.Client/Assets/Script/AppMain/App.cs
+++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/App.cs
@@ -63,6 +63,12 @@ namespace AxibugEmuOnline.Client.ClientCore
         {
             return s_persistentRoot + "/" + emuPlatform.ToString();
         }
+
+        public static string UserPersistenDataPath(RomPlatformType emuPlatform)
+        {
+            return string.Format("{0}/{1}", PersistentDataPath(emuPlatform), user.userdata.UID);
+        }
+
         public static string PersistentDataRoot() => s_persistentRoot;
 
         public static RomLib GetRomLib(RomPlatformType platform)
diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SaveFile.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SaveFile.cs
index d0077d9d..ea95067c 100644
--- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SaveFile.cs
+++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SaveFile.cs
@@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
 
 namespace AxibugEmuOnline.Client
 {
-    /// <summary> 存档文件管理类 </summary>
+    /// <summary> 存档文件抽象类 </summary>
     public class SaveFile
     {
         public SavCloudApi CloudAPI => App.SavMgr.CloudApi;
@@ -28,8 +28,8 @@ namespace AxibugEmuOnline.Client
         {
             get
             {
-                var path = App.PersistentDataPath(EmuPlatform);
-                path = $"{path}/Slot/{EmuPlatform}/{RomID}";
+                var path = App.UserPersistenDataPath(EmuPlatform);
+                path = $"{path}/Slot/{RomID}";
 
                 Directory.CreateDirectory(path);