mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 02:18:33 +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
34 lines
936 B
C#
34 lines
936 B
C#
using Ryujinx.Common.Logging;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ns
|
|
{
|
|
[Service("aoc:u")]
|
|
class IAddOnContentManager : IpcService
|
|
{
|
|
public IAddOnContentManager(ServiceCtx context) { }
|
|
|
|
[Command(2)]
|
|
// CountAddOnContent(u64, pid) -> u32
|
|
public static ResultCode CountAddOnContent(ServiceCtx context)
|
|
{
|
|
context.ResponseData.Write(0);
|
|
|
|
Logger.PrintStub(LogClass.ServiceNs);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(3)]
|
|
// ListAddOnContent(u32, u32, u64, pid) -> (u32, buffer<u32, 6>)
|
|
public static ResultCode ListAddOnContent(ServiceCtx context)
|
|
{
|
|
Logger.PrintStub(LogClass.ServiceNs);
|
|
|
|
// TODO: This is supposed to write a u32 array aswell.
|
|
// It's unknown what it contains.
|
|
context.ResponseData.Write(0);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |