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);