forked from sin365/AxibugEmuOnline
存档文件改为每个独立用户各自拥有
This commit is contained in:
parent
959956706f
commit
16a7acee61
AxibugEmuOnline.Client/Assets/Script/AppMain
@ -63,6 +63,12 @@ namespace AxibugEmuOnline.Client.ClientCore
|
|||||||
{
|
{
|
||||||
return s_persistentRoot + "/" + emuPlatform.ToString();
|
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 string PersistentDataRoot() => s_persistentRoot;
|
||||||
|
|
||||||
public static RomLib GetRomLib(RomPlatformType platform)
|
public static RomLib GetRomLib(RomPlatformType platform)
|
||||||
|
@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
|
|||||||
|
|
||||||
namespace AxibugEmuOnline.Client
|
namespace AxibugEmuOnline.Client
|
||||||
{
|
{
|
||||||
/// <summary> 存档文件管理类 </summary>
|
/// <summary> 存档文件抽象类 </summary>
|
||||||
public class SaveFile
|
public class SaveFile
|
||||||
{
|
{
|
||||||
public SavCloudApi CloudAPI => App.SavMgr.CloudApi;
|
public SavCloudApi CloudAPI => App.SavMgr.CloudApi;
|
||||||
@ -28,8 +28,8 @@ namespace AxibugEmuOnline.Client
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
var path = App.PersistentDataPath(EmuPlatform);
|
var path = App.UserPersistenDataPath(EmuPlatform);
|
||||||
path = $"{path}/Slot/{EmuPlatform}/{RomID}";
|
path = $"{path}/Slot/{RomID}";
|
||||||
|
|
||||||
Directory.CreateDirectory(path);
|
Directory.CreateDirectory(path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user