mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 21:37:11 +02:00
Completely remove static methods inside Ipc interfaces, also remove GetObject method from ServiceCtx as it is no longer needed with this change
This commit is contained in:
parent
3d0b4d345f
commit
276f9f6d48
5 changed files with 41 additions and 74 deletions
|
@ -11,7 +11,7 @@ namespace Ryujinx.OsHle.Objects.Am
|
|||
|
||||
public IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
|
||||
|
||||
public IStorage Storage { get; private set; }
|
||||
private IStorage Storage;
|
||||
|
||||
public IStorageAccessor(IStorage Storage)
|
||||
{
|
||||
|
@ -26,19 +26,13 @@ namespace Ryujinx.OsHle.Objects.Am
|
|||
|
||||
public long GetSize(ServiceCtx Context)
|
||||
{
|
||||
IStorageAccessor Accessor = Context.GetObject<IStorageAccessor>();
|
||||
|
||||
Context.ResponseData.Write((long)Accessor.Storage.Data.Length);
|
||||
Context.ResponseData.Write((long)Storage.Data.Length);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long Read(ServiceCtx Context)
|
||||
{
|
||||
IStorageAccessor Accessor = Context.GetObject<IStorageAccessor>();
|
||||
|
||||
IStorage Storage = Accessor.Storage;
|
||||
|
||||
long ReadPosition = Context.RequestData.ReadInt64();
|
||||
|
||||
if (Context.Request.RecvListBuff.Count > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue