mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-10 22:46:39 +00:00
am: add IsVrModeEnabled (#1189)
* am: stub IsVrMode Needed by SSBU 7.0.0 * Address Ac_K's comments
This commit is contained in:
parent
ba7db8ccef
commit
a0c06103c9
1 changed files with 11 additions and 1 deletions
|
@ -9,7 +9,8 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
||||||
{
|
{
|
||||||
class ICommonStateGetter : IpcService
|
class ICommonStateGetter : IpcService
|
||||||
{
|
{
|
||||||
private CpuBoostMode _cpuBoostMode = CpuBoostMode.Disabled;
|
private CpuBoostMode _cpuBoostMode = CpuBoostMode.Disabled;
|
||||||
|
private bool _vrModeEnabled = false;
|
||||||
|
|
||||||
public ICommonStateGetter() { }
|
public ICommonStateGetter() { }
|
||||||
|
|
||||||
|
@ -89,6 +90,15 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletAE.AllSystemAppletProxiesService.Sys
|
||||||
return ResultCode.Success;
|
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+
|
[Command(60)] // 3.0.0+
|
||||||
// GetDefaultDisplayResolution() -> (u32, u32)
|
// GetDefaultDisplayResolution() -> (u32, u32)
|
||||||
public ResultCode GetDefaultDisplayResolution(ServiceCtx context)
|
public ResultCode GetDefaultDisplayResolution(ServiceCtx context)
|
||||||
|
|
Loading…
Reference in a new issue