Implement IStorage GetSize

This commit is contained in:
gdkchan 2019-02-15 13:24:52 -02:00
parent 9cbcbaa90c
commit 2333e88c88

View file

@ -16,7 +16,8 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 0, Read }
{ 0, Read },
{ 4, GetSize }
};
_baseStream = baseStream;
@ -51,5 +52,13 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
return 0;
}
// GetSize() -> u64 size
public long GetSize(ServiceCtx context)
{
context.ResponseData.Write(_baseStream.Length);
return 0;
}
}
}