mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-08 11:58:34 +00:00
8406ec6272
* Refactor Ryujinx.Common and HLE Stub Logging * Resolve review comments * Rename missed loop variable * Optimize PrintStub logging function * Pass the call-sites Thread ID through to the logger * Remove superfluous lock from ConsoleLog * Process logged data objects in the logger target Pass the data object all the way to the output logger targets, to allow them to "serialize" this in whatever appropriate format they're logging in. * Use existing StringBuilder to build the properties string * Add a ServiceNotImplemented Exception Useful for printing debug information about unimplemented service calls * Resolve Style Nits * Resolve Merge Issues * Fix typo and align declarations
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using Ryujinx.Common.Logging;
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Ns
|
|
{
|
|
class IAddOnContentManager : IpcService
|
|
{
|
|
private Dictionary<int, ServiceProcessRequest> _commands;
|
|
|
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
|
|
|
|
public IAddOnContentManager()
|
|
{
|
|
_commands = new Dictionary<int, ServiceProcessRequest>
|
|
{
|
|
{ 2, CountAddOnContent },
|
|
{ 3, ListAddOnContent }
|
|
};
|
|
}
|
|
|
|
public static long CountAddOnContent(ServiceCtx context)
|
|
{
|
|
context.ResponseData.Write(0);
|
|
|
|
Logger.PrintStub(LogClass.ServiceNs);
|
|
|
|
return 0;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |