mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-23 03:45:46 +00:00
Implement IStorage GetSize (#585)
This commit is contained in:
parent
fec8e3489d
commit
b5fcf883e8
1 changed files with 10 additions and 1 deletions
|
@ -16,7 +16,8 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
{
|
{
|
||||||
_commands = new Dictionary<int, ServiceProcessRequest>
|
_commands = new Dictionary<int, ServiceProcessRequest>
|
||||||
{
|
{
|
||||||
{ 0, Read }
|
{ 0, Read },
|
||||||
|
{ 4, GetSize }
|
||||||
};
|
};
|
||||||
|
|
||||||
_baseStream = baseStream;
|
_baseStream = baseStream;
|
||||||
|
@ -51,5 +52,13 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetSize() -> u64 size
|
||||||
|
public long GetSize(ServiceCtx context)
|
||||||
|
{
|
||||||
|
context.ResponseData.Write(_baseStream.Length);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue