Re values

This commit is contained in:
Isaac Marovitz 2023-11-10 13:46:18 -05:00
parent 105e4b448c
commit 6618b6fa71
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
2 changed files with 9 additions and 6 deletions

View file

@ -1,3 +1,4 @@
using Ryujinx.Horizon.Am.Ipc;
using Ryujinx.Horizon.Sdk.Sf.Hipc;
using Ryujinx.Horizon.Sdk.Sm;
@ -5,12 +6,12 @@ namespace Ryujinx.Horizon.Am
{
internal class AmIpcServer
{
// TODO: Get actual values from RE
private const int MaxSessionsCount = 10;
private const int TotalMaxSessionsCount = MaxSessionsCount * 4;
private const int MaxSessionsCountAE = 9;
private const int MaxSessionsCountOE = 1;
private const int TotalMaxSessionsCount = MaxSessionsCountAE + MaxSessionsCountOE;
private const int PointerBufferSize = 0;
private const int MaxDomains = 0;
private const int MaxDomains = 10;
private const int MaxDomainObjects = 64;
private const int MaxPortsCount = 4;
@ -28,7 +29,8 @@ namespace Ryujinx.Horizon.Am
_serverManager = new ServerManager(allocator, _sm, MaxPortsCount, _options, TotalMaxSessionsCount);
_serverManager.RegisterServer(0, ServiceName.Encode("appletAE"), MaxSessionsCount);
_serverManager.RegisterObjectForServer(new ProxiesService(), ServiceName.Encode("appletAE"), MaxSessionsCountAE);
_serverManager.RegisterObjectForServer(new ProxiesService(), ServiceName.Encode("appletOE"), MaxSessionsCountOE);
}
public void ServiceRequests()

View file

@ -1,10 +1,11 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Proxies;
using Ryujinx.Horizon.Sdk.Sf;
using System;
namespace Ryujinx.Horizon.Sdk.Am.Controllers
{
public interface IAllSystemAppletProxiesService
interface IAllSystemAppletProxiesService : IServiceObject
{
Result OpenSystemAppletProxy(out ISystemAppletProxy systemAppletProxy, ulong unknown1, int unknown2, ulong pid);
Result OpenLibraryAppletProxyOld(out ILibraryAppletProxy libraryAppletProxy, ulong unknown1, int unknown2, ulong pid);