Stub am::ICommonStateGetter::IsVrModeEnabled

This commit is contained in:
lynxnb 2022-03-23 16:41:40 +01:00 committed by PixelyIon
parent c55e1a135e
commit 7d518cba2b
2 changed files with 12 additions and 0 deletions

View File

@ -52,6 +52,11 @@ namespace skyline::service::am {
return {};
}
Result ICommonStateGetter::IsVrModeEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u8>(false);
return {};
}
Result ICommonStateGetter::GetDefaultDisplayResolution(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
if (operationMode == OperationMode::Handheld) {
constexpr u16 HandheldResolutionW{1280};

View File

@ -83,6 +83,12 @@ namespace skyline::service::am {
*/
Result GetPerformanceMode(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief Returns the state of VR mode
* @url https://switchbrew.org/wiki/Applet_Manager_services#IsVrModeEnabled
*/
Result IsVrModeEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief Returns the current display width and height in two u32s
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetDefaultDisplayResolution
@ -95,6 +101,7 @@ namespace skyline::service::am {
SFUNC(0x5, ICommonStateGetter, GetOperationMode),
SFUNC(0x6, ICommonStateGetter, GetPerformanceMode),
SFUNC(0x9, ICommonStateGetter, GetCurrentFocusState),
SFUNC(0x32, ICommonStateGetter, IsVrModeEnabled),
SFUNC(0x3C, ICommonStateGetter, GetDefaultDisplayResolution)
)
};