mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-11 23:02:02 +00:00
am/ectx: Implement SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled and add service placeholder (#2136)
* am/ectx: Implement SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled and add service placeholder This PR implements `am` service call `SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled` (closes #2028) accordingly to RE and adds placeholder for the `ectx` service. Both were added in 11.0.0+ firmware and are needed to boots games which needs this version. Some games are now playable/bootable: * Remove unused warning
This commit is contained in:
parent
e5741fae2d
commit
53b9267b47
4 changed files with 37 additions and 0 deletions
|
@ -13,7 +13,10 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
|||
private Lbl.LblControllerServer _lblControllerServer;
|
||||
|
||||
private bool _vrModeEnabled;
|
||||
#pragma warning disable CS0169
|
||||
private bool _lcdBacklighOffEnabled;
|
||||
private bool _requestExitToLibraryAppletAtExecuteNextProgramEnabled;
|
||||
#pragma warning restore CS0169
|
||||
private int _messageEventHandle;
|
||||
private int _displayResolutionChangedEventHandle;
|
||||
|
||||
|
@ -237,5 +240,15 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
|||
{
|
||||
return (ResultCode)_apmSystemManagerServer.GetCurrentPerformanceConfiguration(context);
|
||||
}
|
||||
|
||||
[Command(900)] // 11.0.0+
|
||||
// SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled()
|
||||
public ResultCode SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(ServiceCtx context)
|
||||
{
|
||||
// TODO : Find where the field is used.
|
||||
_requestExitToLibraryAppletAtExecuteNextProgramEnabled = true;
|
||||
|
||||
return ResultCode.Success;
|
||||
}
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Ectx/IReaderForSystem.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Ectx/IReaderForSystem.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Ectx
|
||||
{
|
||||
[Service("ectx:r")] // 11.0.0+
|
||||
class IReaderForSystem : IpcService
|
||||
{
|
||||
public IReaderForSystem(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Ectx/IWriterForApplication.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Ectx/IWriterForApplication.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Ectx
|
||||
{
|
||||
[Service("ectx:aw")] // 11.0.0+
|
||||
class IWriterForApplication : IpcService
|
||||
{
|
||||
public IWriterForApplication(ServiceCtx context) { }
|
||||
}
|
||||
}
|
8
Ryujinx.HLE/HOS/Services/Ectx/IWriterForSystem.cs
Normal file
8
Ryujinx.HLE/HOS/Services/Ectx/IWriterForSystem.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ryujinx.HLE.HOS.Services.Ectx
|
||||
{
|
||||
[Service("ectx:w")] // 11.0.0+
|
||||
class IWriterForSystem : IpcService
|
||||
{
|
||||
public IWriterForSystem(ServiceCtx context) { }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue