Fix IFatFileSystemCreator

This commit is contained in:
Alex Barney 2021-01-29 01:03:23 -07:00
parent 119809a965
commit e5291eb06a
3 changed files with 29 additions and 2 deletions

View file

@ -0,0 +1,9 @@
namespace LibHac.Fat
{
public struct FatAttribute
{
public bool IsFatSafeEnabled;
public bool IsFatFormatNormalized;
public bool IsTimeStampUpdated;
}
}

View 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;
}
}

View file

@ -1,10 +1,16 @@
using LibHac.Fs; using LibHac.Fat;
using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
namespace LibHac.FsSrv.Creators namespace LibHac.FsSrv.Creators
{ {
public interface IFatFileSystemCreator 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);
} }
} }