mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
More IFileSystemProxy functions
This commit is contained in:
parent
7e2dd22079
commit
5ca698eda1
3 changed files with 21 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
16
src/LibHac/Ncm/StorageId.cs
Normal file
16
src/LibHac/Ncm/StorageId.cs
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue