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
890 B
C#
34 lines
890 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 long CountAddOnContent(ServiceCtx context)
|
|
{
|
|
context.ResponseData.Write(0);
|
|
|
|
Logger.PrintStub(LogClass.ServiceNs);
|
|
|
|
return 0;
|
|
}
|
|
|
|
[Command(3)]
|
|
// ListAddOnContent(u32, u32, u64, pid) -> (u32, buffer<u32, 6>)
|
|
public static long 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 0;
|
|
}
|
|
}
|
|
} |