From acc08532b63d25e56fd291c680130e89d413b897 Mon Sep 17 00:00:00 2001 From: gameblabla Date: Thu, 19 Aug 2021 06:26:28 +0200 Subject: [PATCH] [SPU] Emulate SPUSTAT[5:0] as a mirror of SPUCNT[5:0] Fix is from PCSX-Redux : grumpycoders/pcsx-redux@4e905d7 I have tested the fix against Loonies 8192 (a PSn00bSDK made homebrew game) and it no longer locks up during loading. Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> --- plugins/dfsound/registers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dfsound/registers.c b/plugins/dfsound/registers.c index bb64658d..d508c068 100644 --- a/plugins/dfsound/registers.c +++ b/plugins/dfsound/registers.c @@ -315,7 +315,7 @@ unsigned short CALLBACK SPUreadRegister(unsigned long reg) return spu.spuCtrl; case H_SPUstat: - return spu.spuStat; + return (spu.spuStat & ~0x3F) | (spu.spuCtrl & 0x3F); case H_SPUaddr: return (unsigned short)(spu.spuAddr>>3); -- 2.39.5