fix style
This commit is contained in:
parent
f2d0bb505b
commit
d90d885699
3 changed files with 13 additions and 8 deletions
|
@ -11,7 +11,8 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
public SaveDataType SaveDataType { get; private set; }
|
public SaveDataType SaveDataType { get; private set; }
|
||||||
public SaveSpaceId SaveSpaceId { get; private set; }
|
public SaveSpaceId SaveSpaceId { get; private set; }
|
||||||
|
|
||||||
public SaveInfo(long TitleId,
|
public SaveInfo(
|
||||||
|
long TitleId,
|
||||||
long SaveId,
|
long SaveId,
|
||||||
SaveDataType SaveDataType,
|
SaveDataType SaveDataType,
|
||||||
UserId UserId,
|
UserId UserId,
|
||||||
|
|
|
@ -11,8 +11,8 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
public const string SdCardPath = "sdmc";
|
public const string SdCardPath = "sdmc";
|
||||||
public const string SystemPath = "system";
|
public const string SystemPath = "system";
|
||||||
|
|
||||||
public static string SystemNandPath = Path.Combine("nand", "system");
|
public static string SystemNandPath = Path.Combine(NandPath, "system");
|
||||||
public static string UserNandPath = Path.Combine("nand", "user");
|
public static string UserNandPath = Path.Combine(NandPath, "user");
|
||||||
|
|
||||||
public Stream RomFs { get; private set; }
|
public Stream RomFs { get; private set; }
|
||||||
|
|
||||||
|
@ -54,13 +54,15 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
|
|
||||||
public string GetSdCardPath() => MakeDirAndGetFullPath(SdCardPath);
|
public string GetSdCardPath() => MakeDirAndGetFullPath(SdCardPath);
|
||||||
|
|
||||||
public string GetNandPath() => MakeDirAndGetFullPath(NandPath);
|
public string GetNandPath() => MakeDirAndGetFullPath(NandPath);
|
||||||
|
|
||||||
public string GetGameSavePath(SaveInfo Save, ServiceCtx Context)
|
|
||||||
=> MakeDirAndGetFullPath(SaveHelper.GetSavePath(Save, Context));
|
|
||||||
|
|
||||||
public string GetSystemPath() => MakeDirAndGetFullPath(SystemPath);
|
public string GetSystemPath() => MakeDirAndGetFullPath(SystemPath);
|
||||||
|
|
||||||
|
public string GetGameSavePath(SaveInfo Save, ServiceCtx Context)
|
||||||
|
{
|
||||||
|
return MakeDirAndGetFullPath(SaveHelper.GetSavePath(Save, Context));
|
||||||
|
}
|
||||||
|
|
||||||
public string SwitchPathToSystemPath(string SwitchPath)
|
public string SwitchPathToSystemPath(string SwitchPath)
|
||||||
{
|
{
|
||||||
string[] Parts = SwitchPath.Split(":");
|
string[] Parts = SwitchPath.Split(":");
|
||||||
|
|
|
@ -78,7 +78,9 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
|
|
||||||
long TitleId = Context.RequestData.ReadInt64();
|
long TitleId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
UserId UserId = new UserId(Context.RequestData.ReadInt64(), Context.RequestData.ReadInt64());
|
UserId UserId = new UserId(
|
||||||
|
Context.RequestData.ReadInt64(),
|
||||||
|
Context.RequestData.ReadInt64());
|
||||||
|
|
||||||
long SaveId = Context.RequestData.ReadInt64();
|
long SaveId = Context.RequestData.ReadInt64();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue