mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 06:35:30 +03:00
Stub ListDisplays
This commit is contained in:
parent
a3866a3129
commit
51d1f519af
@ -40,6 +40,21 @@ namespace skyline::service::visrv {
|
||||
return {};
|
||||
}
|
||||
|
||||
Result IApplicationDisplayService::ListDisplays(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
struct DisplayInfo {
|
||||
std::array<u8, 0x40> displayName{"Default"};
|
||||
u8 hasLimitedLayers{1};
|
||||
u8 pad[7];
|
||||
u64 maxLayers{1};
|
||||
u64 width{1920};
|
||||
u64 height{1080};
|
||||
} displayInfo;
|
||||
|
||||
request.outputBuf.at(0).as<DisplayInfo>() = displayInfo;
|
||||
response.Push<u64>(1);
|
||||
return {};
|
||||
}
|
||||
|
||||
Result IApplicationDisplayService::OpenDisplay(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||
auto displayName(request.PopString());
|
||||
Logger::Debug("Opening display: {}", displayName);
|
||||
|
@ -53,6 +53,11 @@ namespace skyline::service::visrv {
|
||||
*/
|
||||
Result GetManagerDisplayService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @url https://switchbrew.org/wiki/Display_services#ListDisplays
|
||||
*/
|
||||
Result ListDisplays(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||
|
||||
/**
|
||||
* @brief Opens up a display using its name as the input
|
||||
* @url https://switchbrew.org/wiki/Display_services#OpenDisplay
|
||||
@ -99,6 +104,7 @@ namespace skyline::service::visrv {
|
||||
SFUNC(0x65, IApplicationDisplayService, GetSystemDisplayService),
|
||||
SFUNC(0x66, IApplicationDisplayService, GetManagerDisplayService),
|
||||
SFUNC(0x67, IApplicationDisplayService, GetIndirectDisplayTransactionService),
|
||||
SFUNC(0x3E8, IApplicationDisplayService, ListDisplays),
|
||||
SFUNC(0x3F2, IApplicationDisplayService, OpenDisplay),
|
||||
SFUNC(0x3FC, IApplicationDisplayService, CloseDisplay),
|
||||
SFUNC(0x7E4, IApplicationDisplayService, OpenLayer),
|
||||
|
Loading…
Reference in New Issue
Block a user