From 6a0b3418d1fc095c567697dbff6e0688cd0ffd46 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 26 Feb 2014 06:50:11 +0100 Subject: [PATCH] (PSP1) Add __sceGuFinish_GU_DIRECT --- psp1/psp1_video_inl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/psp1/psp1_video_inl.h b/psp1/psp1_video_inl.h index dbca029862..79d8923da6 100644 --- a/psp1/psp1_video_inl.h +++ b/psp1/psp1_video_inl.h @@ -163,6 +163,13 @@ static int tsizecmd_tbl[8] = { 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf }; } \ } +#define __sceGuFinish_GU_DIRECT() \ + sendCommandi(15,0); \ + sendCommandiStall(12,0); \ + /* go to parent list */ \ + gu_curr_context = gu_list->parent_context; \ + gu_list = &gu_contexts[gu_curr_context].list + void sendCommandf(int cmd, float argument); void callbackSig(int id, void* arg);