aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy')
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/AppletStandalone.cs16
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/ILibraryAppletSelfAccessor.cs78
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/IProcessWindingController.cs24
3 files changed, 0 insertions, 118 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/AppletStandalone.cs b/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/AppletStandalone.cs
deleted file mode 100644
index 69967c56..00000000
--- a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/AppletStandalone.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Collections.Generic;
-
-namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.LibraryAppletProxy
-{
- class AppletStandalone
- {
- public AppletId AppletId;
- public LibraryAppletMode LibraryAppletMode;
- public Queue<byte[]> InputData;
-
- public AppletStandalone()
- {
- InputData = new Queue<byte[]>();
- }
- }
-} \ No newline at end of file
diff --git a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/ILibraryAppletSelfAccessor.cs b/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/ILibraryAppletSelfAccessor.cs
deleted file mode 100644
index 176bd632..00000000
--- a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/ILibraryAppletSelfAccessor.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using Ryujinx.Common;
-using System;
-
-namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.LibraryAppletProxy
-{
- class ILibraryAppletSelfAccessor : IpcService
- {
- private AppletStandalone _appletStandalone = new AppletStandalone();
-
- public ILibraryAppletSelfAccessor(ServiceCtx context)
- {
- if (context.Device.Processes.ActiveApplication.ProgramId == 0x0100000000001009)
- {
- // Create MiiEdit data.
- _appletStandalone = new AppletStandalone()
- {
- AppletId = AppletId.MiiEdit,
- LibraryAppletMode = LibraryAppletMode.AllForeground
- };
-
- byte[] miiEditInputData = new byte[0x100];
- miiEditInputData[0] = 0x03; // Hardcoded unknown value.
-
- _appletStandalone.InputData.Enqueue(miiEditInputData);
- }
- else
- {
- throw new NotImplementedException($"{context.Device.Processes.ActiveApplication.ProgramId} applet is not implemented.");
- }
- }
-
- [CommandCmif(0)]
- // PopInData() -> object<nn::am::service::IStorage>
- public ResultCode PopInData(ServiceCtx context)
- {
- byte[] appletData = _appletStandalone.InputData.Dequeue();
-
- if (appletData.Length == 0)
- {
- return ResultCode.NotAvailable;
- }
-
- MakeObject(context, new IStorage(appletData));
-
- return ResultCode.Success;
- }
-
- [CommandCmif(11)]
- // GetLibraryAppletInfo() -> nn::am::service::LibraryAppletInfo
- public ResultCode GetLibraryAppletInfo(ServiceCtx context)
- {
- LibraryAppletInfo libraryAppletInfo = new LibraryAppletInfo()
- {
- AppletId = _appletStandalone.AppletId,
- LibraryAppletMode = _appletStandalone.LibraryAppletMode
- };
-
- context.ResponseData.WriteStruct(libraryAppletInfo);
-
- return ResultCode.Success;
- }
-
- [CommandCmif(14)]
- // GetCallerAppletIdentityInfo() -> nn::am::service::AppletIdentityInfo
- public ResultCode GetCallerAppletIdentityInfo(ServiceCtx context)
- {
- AppletIdentifyInfo appletIdentifyInfo = new AppletIdentifyInfo()
- {
- AppletId = AppletId.QLaunch,
- TitleId = 0x0100000000001000
- };
-
- context.ResponseData.WriteStruct(appletIdentifyInfo);
-
- return ResultCode.Success;
- }
- }
-} \ No newline at end of file
diff --git a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/IProcessWindingController.cs b/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/IProcessWindingController.cs
deleted file mode 100644
index 6acd18cd..00000000
--- a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletProxy/IProcessWindingController.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using Ryujinx.Common;
-
-namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.LibraryAppletProxy
-{
- class IProcessWindingController : IpcService
- {
- public IProcessWindingController() { }
-
- [CommandCmif(0)]
- // GetLaunchReason() -> nn::am::service::AppletProcessLaunchReason
- public ResultCode GetLaunchReason(ServiceCtx context)
- {
- // NOTE: Flag is set by using an internal field.
- AppletProcessLaunchReason appletProcessLaunchReason = new AppletProcessLaunchReason()
- {
- Flag = 0
- };
-
- context.ResponseData.WriteStruct(appletProcessLaunchReason);
-
- return ResultCode.Success;
- }
- }
-} \ No newline at end of file