mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-25 02:30:11 +01:00
560ccbeb2d
* 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
34 lines
946 B
C#
34 lines
946 B
C#
namespace Ryujinx.HLE.HOS.Services.Bcat
|
|
{
|
|
[Service("bcat:a")]
|
|
[Service("bcat:m")]
|
|
[Service("bcat:u")]
|
|
[Service("bcat:s")]
|
|
class IServiceCreator : IpcService
|
|
{
|
|
public IServiceCreator(ServiceCtx context) { }
|
|
|
|
[Command(0)]
|
|
// CreateBcatService(u64, pid) -> object<nn::bcat::detail::ipc::IBcatService>
|
|
public long CreateBcatService(ServiceCtx context)
|
|
{
|
|
long id = context.RequestData.ReadInt64();
|
|
|
|
MakeObject(context, new IBcatService());
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(1)]
|
|
// CreateDeliveryCacheStorageService(u64, pid) -> object<nn::bcat::detail::ipc::IDeliveryCacheStorageService>
|
|
public long CreateDeliveryCacheStorageService(ServiceCtx context)
|
|
{
|
|
long id = context.RequestData.ReadInt64();
|
|
|
|
MakeObject(context, new IDeliveryCacheStorageService());
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
}
|