mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-25 09:05:46 +00:00
47 lines
No EOL
1.3 KiB
C#
47 lines
No EOL
1.3 KiB
C#
using Ryujinx.Common.Logging;
|
|
using Ryujinx.HLE.HOS.Ipc;
|
|
using Ryujinx.HLE.Utilities;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Acc
|
|
{
|
|
class IManagerForApplication : IpcService
|
|
{
|
|
private UInt128 Uuid;
|
|
|
|
private Dictionary<int, ServiceProcessRequest> m_Commands;
|
|
|
|
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => m_Commands;
|
|
|
|
public IManagerForApplication(UInt128 Uuid)
|
|
{
|
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
|
{
|
|
{ 0, CheckAvailability },
|
|
{ 1, GetAccountId }
|
|
};
|
|
|
|
this.Uuid = Uuid;
|
|
}
|
|
|
|
// CheckAvailability()
|
|
public long CheckAvailability(ServiceCtx Context)
|
|
{
|
|
Logger.PrintStub(LogClass.ServiceAcc, "Stubbed.");
|
|
|
|
return 0;
|
|
}
|
|
|
|
// GetAccountId() -> nn::account::NetworkServiceAccountId
|
|
public long GetAccountId(ServiceCtx Context)
|
|
{
|
|
long NetworkServiceAccountId = 0xcafe;
|
|
|
|
Logger.PrintStub(LogClass.ServiceAcc, $"Stubbed. NetworkServiceAccountId: {NetworkServiceAccountId}");
|
|
|
|
Context.ResponseData.Write(NetworkServiceAccountId);
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
} |