mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 00:45:28 +03:00
Stub am::ICommonStateGetter::IsVrModeEnabled
This commit is contained in:
parent
c55e1a135e
commit
7d518cba2b
@ -52,6 +52,11 @@ namespace skyline::service::am {
|
|||||||
return {};
|
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) {
|
Result ICommonStateGetter::GetDefaultDisplayResolution(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
if (operationMode == OperationMode::Handheld) {
|
if (operationMode == OperationMode::Handheld) {
|
||||||
constexpr u16 HandheldResolutionW{1280};
|
constexpr u16 HandheldResolutionW{1280};
|
||||||
|
@ -83,6 +83,12 @@ namespace skyline::service::am {
|
|||||||
*/
|
*/
|
||||||
Result GetPerformanceMode(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
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
|
* @brief Returns the current display width and height in two u32s
|
||||||
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetDefaultDisplayResolution
|
* @url https://switchbrew.org/wiki/Applet_Manager_services#GetDefaultDisplayResolution
|
||||||
@ -95,6 +101,7 @@ namespace skyline::service::am {
|
|||||||
SFUNC(0x5, ICommonStateGetter, GetOperationMode),
|
SFUNC(0x5, ICommonStateGetter, GetOperationMode),
|
||||||
SFUNC(0x6, ICommonStateGetter, GetPerformanceMode),
|
SFUNC(0x6, ICommonStateGetter, GetPerformanceMode),
|
||||||
SFUNC(0x9, ICommonStateGetter, GetCurrentFocusState),
|
SFUNC(0x9, ICommonStateGetter, GetCurrentFocusState),
|
||||||
|
SFUNC(0x32, ICommonStateGetter, IsVrModeEnabled),
|
||||||
SFUNC(0x3C, ICommonStateGetter, GetDefaultDisplayResolution)
|
SFUNC(0x3C, ICommonStateGetter, GetDefaultDisplayResolution)
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user