public DisplayListStatusEnum sceGeDrawSync(SyncTypeEnum SyncType)
{
//Thread.Sleep(40);
switch (SyncType)
{
case SyncTypeEnum.WaitForCompletion:
ThreadManager.Current.SetWaitAndPrepareWakeUp(HleThread.WaitType.GraphicEngine, "sceGeDrawSync", GpuProcessor, (WakeUp) =>
{
GpuProcessor.GeDrawSync(WakeUp);
});
return 0;
case SyncTypeEnum.Peek:
return GpuProcessor.PeekStatus();
default:
throw (new SceKernelException(SceKernelErrors.ERROR_INVALID_MODE));
}
}