Signatures…

This commit is contained in:
Isaac Marovitz 2024-02-15 12:15:17 -05:00
parent 012b85a481
commit 5f3ed6dfc0
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
10 changed files with 169 additions and 18 deletions

View file

@ -0,0 +1,60 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am;
using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Am.Ipc.Controllers
{
partial class CradleFirmwareUpdater : ICradleFirmwareUpdater
{
[CmifCommand(0)]
public Result StartUpdate()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(1)]
public Result FinishUpdate()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(2)]
public Result GetCradleDeviceInfo(out CradleDeviceInfo arg0)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(3)]
public Result GetCradleDeviceInfoChangeEvent(out int arg0)
{
arg0 = 0;
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(4)]
public Result GetUpdateProgressInfo(out UpdateProgressInfo arg0)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(5)]
public Result GetLastInternalResult()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
}
}

View file

@ -48,15 +48,16 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
}
[CmifCommand(9)]
public Result GetLibraryAppletLaunchableEvent()
public Result GetLibraryAppletLaunchableEvent(out int arg0)
{
arg0 = 0;
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(10)]
public Result SetScreenShotPermission()
public Result SetScreenShotPermission(int arg0)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
@ -64,7 +65,7 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
}
[CmifCommand(11)]
public Result SetOperationModeChangedNotification()
public Result SetOperationModeChangedNotification(bool arg0)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
@ -72,7 +73,7 @@ namespace Ryujinx.Horizon.Am.Ipc.Controllers
}
[CmifCommand(12)]
public Result SetPerformanceModeChangedNotification()
public Result SetPerformanceModeChangedNotification(bool arg0)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);

View file

@ -0,0 +1,42 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Am.Ipc.Controllers
{
partial class SystemAppletControllerForDebug : ISystemAppletControllerForDebug
{
[CmifCommand(1)]
public Result RequestLaunchApplicationForDebug()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(2)]
public Result GetDebugStorageChannel()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(3)]
public Result CreateStorageForDebug()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
[CmifCommand(4)]
public Result CreateCradleFirmwareUpdaterForDebug()
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
return Result.Success;
}
}
}

View file

@ -1,4 +1,4 @@
using Ryujinx.Common.Logging;
using Ryujinx.Horizon.Am.Ipc.Controllers;
using Ryujinx.Horizon.Am.Ipc.Proxies;
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Am.Controllers;
@ -52,25 +52,25 @@ namespace Ryujinx.Horizon.Am.Ipc
}
[CmifCommand(400)]
public Result CreateSelfLibraryAppletCreatorForDevelop()
public Result CreateSelfLibraryAppletCreatorForDevelop(out ILibraryAppletCreator libraryAppletCreator, ulong unknown, [ClientProcessId] ulong pid)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
libraryAppletCreator = new LibraryAppletCreator();
return Result.Success;
}
[CmifCommand(410)]
public Result GetSystemAppletControllerForDebug()
public Result GetSystemAppletControllerForDebug(out ISystemAppletControllerForDebug systemAppletControllerForDebug)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
systemAppletControllerForDebug = new SystemAppletControllerForDebug();
return Result.Success;
}
[CmifCommand(1000)]
public Result GetDebugFunctions()
public Result GetDebugFunctions(out IDebugFunctions debugFunctions)
{
Logger.Stub?.PrintStub(LogClass.ServiceAm);
debugFunctions = new DebugFunctions();
return Result.Success;
}

View file

@ -12,8 +12,8 @@ namespace Ryujinx.Horizon.Sdk.Am.Controllers
Result OpenLibraryAppletProxy(out ILibraryAppletProxy libraryAppletProxy, ulong unknown1, int unknown2, ReadOnlySpan<byte> appletAttribute, ulong pid);
Result OpenOverlayAppletProxy(out IOverlayAppletProxy overlayAppletProxy, ulong unknown1, int unknown2, ulong pid);
Result OpenSystemApplicationProxy(out IApplicationProxy applicationProxy, ulong unknown1, int unknown2, ulong pid);
Result CreateSelfLibraryAppletCreatorForDevelop();
Result GetSystemAppletControllerForDebug();
Result GetDebugFunctions();
Result CreateSelfLibraryAppletCreatorForDevelop(out ILibraryAppletCreator libraryAppletCreator, ulong unknown, ulong pid);
Result GetSystemAppletControllerForDebug(out ISystemAppletControllerForDebug systemAppletControllerForDebug);
Result GetDebugFunctions(out IDebugFunctions debugFunctions);
}
}

View file

@ -0,0 +1,15 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers
{
interface ICradleFirmwareUpdater : IServiceObject
{
Result StartUpdate();
Result FinishUpdate();
Result GetCradleDeviceInfo(out CradleDeviceInfo arg0);
Result GetCradleDeviceInfoChangeEvent(out int arg0);
Result GetUpdateProgressInfo(out UpdateProgressInfo arg0);
Result GetLastInternalResult();
}
}

View file

@ -9,10 +9,10 @@ namespace Ryujinx.Horizon.Sdk.Am.Controllers
Result UnlockExit();
Result EnterFatalSection();
Result LeaveFatalSection();
Result GetLibraryAppletLaunchableEvent();
Result SetScreenShotPermission();
Result SetOperationModeChangedNotification();
Result SetPerformanceModeChangedNotification();
Result GetLibraryAppletLaunchableEvent(out int arg0);
Result SetScreenShotPermission(int arg0);
Result SetOperationModeChangedNotification(bool arg0);
Result SetPerformanceModeChangedNotification(bool arg0);
Result SetFocusHandlingMode();
Result SetRestartMessageEnabled();
Result SetScreenShotAppletIdentityInfo();

View file

@ -0,0 +1,13 @@
using Ryujinx.Horizon.Common;
using Ryujinx.Horizon.Sdk.Sf;
namespace Ryujinx.Horizon.Sdk.Am.Controllers
{
interface ISystemAppletControllerForDebug : IServiceObject
{
Result RequestLaunchApplicationForDebug();
Result GetDebugStorageChannel();
Result CreateStorageForDebug();
Result CreateCradleFirmwareUpdaterForDebug();
}
}

View file

@ -0,0 +1,10 @@
using System.Runtime.InteropServices;
namespace Ryujinx.Horizon.Sdk.Am
{
[StructLayout(LayoutKind.Sequential, Size = 0x10, Pack = 0x4)]
public struct CradleDeviceInfo
{
}
}

View file

@ -0,0 +1,10 @@
using System.Runtime.InteropServices;
namespace Ryujinx.Horizon.Sdk.Am
{
[StructLayout(LayoutKind.Sequential, Size = 0x10, Pack = 0x4)]
public struct UpdateProgressInfo
{
}
}