mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 21:46:50 +00:00
4ad3936afd
* refactoring result codes - Add a main enum who can handle some orphalin result codes and the default `ResultCode.Success` one. - Add sub-enum by services when it's needed. - Remove some empty line. - Recast all service calls to ResultCode. - Remove some unneeded static declaration. - Delete unused `NvHelper` class. * NvResult is back * Fix
33 lines
No EOL
991 B
C#
33 lines
No EOL
991 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 ResultCode CreateBcatService(ServiceCtx context)
|
|
{
|
|
long id = context.RequestData.ReadInt64();
|
|
|
|
MakeObject(context, new IBcatService());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(1)]
|
|
// CreateDeliveryCacheStorageService(u64, pid) -> object<nn::bcat::detail::ipc::IDeliveryCacheStorageService>
|
|
public ResultCode CreateDeliveryCacheStorageService(ServiceCtx context)
|
|
{
|
|
long id = context.RequestData.ReadInt64();
|
|
|
|
MakeObject(context, new IDeliveryCacheStorageService());
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |