Implement svcSetGpuProt and svcSetWifiEnabled
This commit is contained in:
parent
325dbf02b7
commit
4d8c2ea9f5
@ -1007,6 +1007,18 @@ Result svcGetHandleInfo(s64* out, Handle handle, u32 param);
|
|||||||
*/
|
*/
|
||||||
Result svcGetSystemInfo(s64* out, u32 type, s32 param);
|
Result svcGetSystemInfo(s64* out, u32 type, s32 param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Sets the GPU protection register to restrict the range of the GPU DMA. 11.3+ only.
|
||||||
|
* @param useApplicationRestriction Whether to use the register value used for APPLICATION titles.
|
||||||
|
*/
|
||||||
|
Result svcSetGpuProt(bool useApplicationRestriction);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables or disables Wi-Fi. 11.4+ only.
|
||||||
|
* @param enabled Whether to enable or disable Wi-Fi.
|
||||||
|
*/
|
||||||
|
Result svcSetWifiEnabled(bool enabled);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Sets the current kernel state.
|
* @brief Sets the current kernel state.
|
||||||
* @param type Type of state to set (the other parameters depend on it).
|
* @param type Type of state to set (the other parameters depend on it).
|
||||||
|
@ -502,6 +502,16 @@ SVC_BEGIN svcGetDmaState
|
|||||||
bx lr
|
bx lr
|
||||||
SVC_END
|
SVC_END
|
||||||
|
|
||||||
|
SVC_BEGIN svcSetGpuProt
|
||||||
|
svc 0x59
|
||||||
|
bx lr
|
||||||
|
SVC_END
|
||||||
|
|
||||||
|
SVC_BEGIN svcSetWifiEnabled
|
||||||
|
svc 0x5A
|
||||||
|
bx lr
|
||||||
|
SVC_END
|
||||||
|
|
||||||
SVC_BEGIN svcDebugActiveProcess
|
SVC_BEGIN svcDebugActiveProcess
|
||||||
push {r0}
|
push {r0}
|
||||||
svc 0x60
|
svc 0x60
|
||||||
|
Loading…
Reference in New Issue
Block a user