mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Fix IFatFileSystemCreator
This commit is contained in:
parent
119809a965
commit
e5291eb06a
3 changed files with 29 additions and 2 deletions
9
src/LibHac/Fat/FatAttribute.cs
Normal file
9
src/LibHac/Fat/FatAttribute.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
namespace LibHac.Fat
|
||||
{
|
||||
public struct FatAttribute
|
||||
{
|
||||
public bool IsFatSafeEnabled;
|
||||
public bool IsFatFormatNormalized;
|
||||
public bool IsTimeStampUpdated;
|
||||
}
|
||||
}
|
12
src/LibHac/Fat/FatFormatParam.cs
Normal file
12
src/LibHac/Fat/FatFormatParam.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace LibHac.Fat
|
||||
{
|
||||
public struct FatFormatParam
|
||||
{
|
||||
public bool IsSdCard;
|
||||
public uint ProtectedAreaSectors;
|
||||
public Result WriteVerifyErrorResult;
|
||||
public Memory<byte> WorkBuffer;
|
||||
}
|
||||
}
|
|
@ -1,10 +1,16 @@
|
|||
using LibHac.Fs;
|
||||
using LibHac.Fat;
|
||||
using LibHac.Fs;
|
||||
using LibHac.Fs.Fsa;
|
||||
|
||||
namespace LibHac.FsSrv.Creators
|
||||
{
|
||||
public interface IFatFileSystemCreator
|
||||
{
|
||||
Result Create(out IFileSystem fileSystem, IStorage baseStorage);
|
||||
Result Create(out ReferenceCountedDisposable<IFileSystem> fileSystem,
|
||||
ReferenceCountedDisposable<IStorage> baseStorage, FatAttribute attribute, int driveId,
|
||||
Result invalidFatFormatResult, Result usableSpaceNotEnoughResult);
|
||||
|
||||
Result Format(ReferenceCountedDisposable<IStorage> partitionStorage, FatAttribute attribute,
|
||||
FatFormatParam formatParam, int driveId, Result invalidFatFormatResult, Result usableSpaceNotEnoughResult);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue