ryujinx/Ryujinx.HLE/HOS/Services/Am/IStorage.cs
Ac_K 560ccbeb2d Refactoring commands handling (#728)
* Refactoring commands handling

- Use Reflection to handle commands ID.
- Add all symbols (from SwIPC so not all time accurate).
- Re-sort some services commands methods.
- Some cleanup.
- Keep some empty constructor for consistency.

* Fix order in IProfile
2019-07-11 22:13:43 -03:00

21 lines
451 B
C#

namespace Ryujinx.HLE.HOS.Services.Am
{
class IStorage : IpcService
{
public byte[] Data { get; private set; }
public IStorage(byte[] data)
{
Data = data;
}
[Command(0)]
// Open() -> object<nn::am::service::IStorageAccessor>
public long Open(ServiceCtx context)
{
MakeObject(context, new IStorageAccessor(this));
return 0;
}
}
}