Stub SetGraphicsFirmwareMemoryMarginEnabled

This is used by most retail games released after 3.0.
This commit is contained in:
Billy Laws 2020-07-09 14:09:21 +01:00 committed by ◱ PixelyIon
parent ef9760570b
commit 92e3f84242
2 changed files with 9 additions and 1 deletions

View File

@ -60,7 +60,8 @@ namespace skyline::service::nvdrv {
{0x2, SFUNC(INvDrvServices::Close)}, {0x2, SFUNC(INvDrvServices::Close)},
{0x3, SFUNC(INvDrvServices::Initialize)}, {0x3, SFUNC(INvDrvServices::Initialize)},
{0x4, SFUNC(INvDrvServices::QueryEvent)}, {0x4, SFUNC(INvDrvServices::QueryEvent)},
{0x8, SFUNC(INvDrvServices::SetAruidByPID)} {0x8, SFUNC(INvDrvServices::SetAruidByPID)},
{0xd, SFUNC(INvDrvServices::SetGraphicsFirmwareMemoryMarginEnabled)}
}) {} }) {}
void INvDrvServices::Open(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { void INvDrvServices::Open(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
@ -134,4 +135,6 @@ namespace skyline::service::nvdrv {
void INvDrvServices::SetAruidByPID(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { void INvDrvServices::SetAruidByPID(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u32>(constant::status::Success); response.Push<u32>(constant::status::Success);
} }
void INvDrvServices::SetGraphicsFirmwareMemoryMarginEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {}
} }

View File

@ -90,5 +90,10 @@ namespace skyline::service::nvdrv {
* @brief This sets the AppletResourceUserId which matches the PID (https://switchbrew.org/wiki/NV_services#SetAruidByPID) * @brief This sets the AppletResourceUserId which matches the PID (https://switchbrew.org/wiki/NV_services#SetAruidByPID)
*/ */
void SetAruidByPID(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); void SetAruidByPID(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @brief This enables the graphics firmware memory margin (https://switchbrew.org/wiki/NV_services#SetGraphicsFirmwareMemoryMarginEnabled)
*/
void SetGraphicsFirmwareMemoryMarginEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
}; };
} }