Calculate size of Xbox FAT and read it to memory.

This commit is contained in:
2019-04-07 11:41:35 +01:00
parent e6a9144259
commit 6d43c83712
5 changed files with 196 additions and 13 deletions

View File

@@ -37,12 +37,35 @@ namespace DiscImageChef.Filesystems.FATX
{
public partial class XboxFatPlugin
{
public Errno MapBlock(string path, long fileBlock, out long deviceBlock) => throw new NotImplementedException();
public Errno MapBlock(string path, long fileBlock, out long deviceBlock)
{
deviceBlock = 0;
if(!mounted) return Errno.AccessDenied;
public Errno GetAttributes(string path, out FileAttributes attributes) => throw new NotImplementedException();
throw new NotImplementedException();
}
public Errno Read(string path, long offset, long size, ref byte[] buf) => throw new NotImplementedException();
public Errno GetAttributes(string path, out FileAttributes attributes)
{
attributes = new FileAttributes();
if(!mounted) return Errno.AccessDenied;
public Errno Stat(string path, out FileEntryInfo stat) => throw new NotImplementedException();
throw new NotImplementedException();
}
public Errno Read(string path, long offset, long size, ref byte[] buf)
{
if(!mounted) return Errno.AccessDenied;
throw new NotImplementedException();
}
public Errno Stat(string path, out FileEntryInfo stat)
{
stat = null;
if(!mounted) return Errno.AccessDenied;
throw new NotImplementedException();
}
}
}