From f2b9bba58f084c767a01e30156fc0eadcb1ea25b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 5 Aug 2015 07:39:16 +0200 Subject: [PATCH] (ProcessFIFO) Get rid of goto --- mednafen/psx/gpu.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/mednafen/psx/gpu.cpp b/mednafen/psx/gpu.cpp index 312143ad..169425a7 100644 --- a/mednafen/psx/gpu.cpp +++ b/mednafen/psx/gpu.cpp @@ -791,18 +791,17 @@ void PS_GPU::ProcessFIFO(void) for(i = 0; i < command_len; i++) CB[i] = BlitterFIFO.Read(); - if (read_fifo) - goto end; + if (!read_fifo) + { + if(!command->ss_cmd) + DrawTimeAvail -= 2; - if(!command->ss_cmd) - DrawTimeAvail -= 2; + // A very very ugly kludge to support texture mode specialization. fixme/cleanup/SOMETHING in the future. + /* Don't alter SpriteFlip here. */ + if(cc >= 0x20 && cc <= 0x3F && (cc & 0x4)) + SetTPage(CB[4 + ((cc >> 4) & 0x1)] >> 16); + } - // A very very ugly kludge to support texture mode specialization. fixme/cleanup/SOMETHING in the future. - /* Don't alter SpriteFlip here. */ - if(cc >= 0x20 && cc <= 0x3F && (cc & 0x4)) - SetTPage(CB[4 + ((cc >> 4) & 0x1)] >> 16); - -end: if(command->func[abr][TexMode]) command->func[abr][TexMode | (MaskEvalAND ? 0x4 : 0x0)](this, CB); }