diff options
| author | Thog <me@thog.eu> | 2020-05-01 18:51:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-01 18:51:00 +0200 |
| commit | a0c06103c979339413966ff05584415b49f27564 (patch) | |
| tree | a2fb80c18b45f31a0072e7e5069acfcf5b25f8c6 | |
| parent | ba7db8ccefd6e364d1e1412d6ad1d7cbd30a990c (diff) | |
am: add IsVrModeEnabled (#1189)
* am: stub IsVrMode
Needed by SSBU 7.0.0
* Address Ac_K's comments
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs b/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs index b495b86f..30192455 100644 --- a/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs +++ b/Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ICommonStateGetter.cs @@ -9,7 +9,8 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys { class ICommonStateGetter : IpcService { - private CpuBoostMode _cpuBoostMode = CpuBoostMode.Disabled; + private CpuBoostMode _cpuBoostMode = CpuBoostMode.Disabled; + private bool _vrModeEnabled = false; public ICommonStateGetter() { } @@ -89,6 +90,15 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys return ResultCode.Success; } + [Command(50)] // 3.0.0+ + // IsVrModeEnabled() -> b8 + public ResultCode IsVrModeEnabled(ServiceCtx context) + { + context.ResponseData.Write(_vrModeEnabled); + + return ResultCode.Success; + } + [Command(60)] // 3.0.0+ // GetDefaultDisplayResolution() -> (u32, u32) public ResultCode GetDefaultDisplayResolution(ServiceCtx context) |
