From 91a6e03878108faa4add1167ac4be20ff10aaef3 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Mon, 27 Oct 2025 13:26:35 -0400 Subject: [PATCH] Update ILibraryAppletAccessor.cs This lets games such as The Legend of Zelda: Tears of the Kingdom (v1.4.2) and other SDK 20+ games successfully circumvent a crash when calling an applet. Example: No controller connected on boot -> calls Controller Applet -> no stub = crash. --- .../LibraryAppletCreator/ILibraryAppletAccessor.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletCreator/ILibraryAppletAccessor.cs b/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletCreator/ILibraryAppletAccessor.cs index ffeddbb72..e1c0e5e62 100644 --- a/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletCreator/ILibraryAppletAccessor.cs +++ b/src/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/LibraryAppletCreator/ILibraryAppletAccessor.cs @@ -117,6 +117,17 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Lib return ResultCode.Success; } + + [CommandCmif(90)] + // ILibraryAppletAccessor:90 + public ResultCode Unknown90(ServiceCtx context) + { + // NOTE: This call is performed on SDK 20+ when applet is called. + // Since we don't support applets for now, it's fine to stub it. + + Logger.Stub?.PrintStub(LogClass.ServiceAm); + return ResultCode.Success; + } [CommandCmif(100)] // PushInData(object)