mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 10:05:29 +03:00
Stub am::ICommonStateGetter::IsVrModeEnabled
This commit is contained in:
parent
c55e1a135e
commit
7d518cba2b
@ -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};
|
||||
|
@ -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)
|
||||
)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user