Add GSPLCD_GetVendors

This commit is contained in:
Michael Scire 2016-09-04 05:26:55 -07:00
parent b0768e552b
commit 6840625bc7
2 changed files with 16 additions and 0 deletions

View File

@ -31,3 +31,7 @@ Result GSPLCD_PowerOnBacklight(u32 screen);
*/
Result GSPLCD_PowerOffBacklight(u32 screen);
/**
* @brief Gets the LCD screens' vendors. Stubbed on old 3ds.
*/
Result GSPLCD_GetVendor(void);

View File

@ -52,3 +52,15 @@ Result GSPLCD_PowerOffBacklight(u32 screen)
return cmdbuf[1];
}
Result GSPLCD_GetVendor(void)
{
u32 *cmdbuf = getThreadCommandBuffer();
cmdbuf[0] = IPC_MakeHeader(0x14,0,0); // 0x140000
Result ret=0;
if (R_FAILED(ret = svcSendSyncRequest(gspLcdHandle))) return ret;
return cmdbuf[2];
}