More IFileSystemProxy functions

This commit is contained in:
Alex Barney 2019-09-18 18:07:08 -05:00
parent 7e2dd22079
commit 5ca698eda1
3 changed files with 21 additions and 1 deletions

View file

@ -12,7 +12,7 @@ namespace LibHac.Common
public readonly ulong High;
public readonly ulong Low;
public static Id128 InvalidId = new Id128(0, 0);
public static readonly Id128 InvalidId = new Id128(0, 0);
public Id128(ulong high, ulong low)
{

View file

@ -52,6 +52,10 @@ namespace LibHac.FsService
Result OpenContentStorageFileSystem(out IFileSystem fileSystem, ContentStorageId storageId);
Result OpenCustomStorageFileSystem(out IFileSystem fileSystem, CustomStorageId storageId);
Result OpenDataStorageByCurrentProcess(out IStorage storage);
Result OpenDataStorageByProgramId(out IStorage storage, TitleId programId);
Result OpenDataStorageByDataId(out IStorage storage, TitleId dataId, StorageId storageId);
Result SetSdCardEncryptionSeed(ReadOnlySpan<byte> seed);
Result SetSaveDataSize(long saveDataSize, long saveDataJournalSize);
Result SetSaveDataRootPath(U8Span path);

View file

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace LibHac.Ncm
{
public enum StorageId : byte
{
None = 0,
Host = 1,
GameCard = 2,
BuiltInSystem = 3,
BuiltInUser = 4,
SdCard = 5
}
}