MCPcopy Create free account
hub / github.com/devkitPro/libctru / GSPGPU_ReleaseRight

Function GSPGPU_ReleaseRight

libctru/source/services/gspgpu.c:631–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631Result GSPGPU_ReleaseRight(void)
632{
633 if(!gspGpuRight) return 0;
634
635 u32* cmdbuf=getThreadCommandBuffer();
636 cmdbuf[0]=IPC_MakeHeader(0x17,0,0); // 0x170000
637
638 Result ret=0;
639 if(R_FAILED(ret=svcSendSyncRequest(gspGpuHandle)))return ret;
640
641 ret = (Result)cmdbuf[1];
642 if(R_SUCCEEDED(ret)) gspGpuRight=false;
643
644 return ret;
645}
646
647Result GSPGPU_ImportDisplayCaptureInfo(GSPGPU_CaptureInfo* captureinfo)
648{

Callers 5

gspInitFunction · 0.85
gspExitFunction · 0.85
aptJumpToHomeMenuFunction · 0.85
aptLaunchLibraryAppletFunction · 0.85
aptLaunchSystemAppletFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected