GE Debugger: Include extended CLUT in frame dumps.

Not available on a real PSP, but used in an enhancement (see #15727.)
This commit is contained in:
Unknown W. Brackets 2022-08-20 17:35:06 -07:00
parent e374ea6b21
commit 229c944208

View File

@ -454,7 +454,9 @@ static void EmitTransfer(u32 op) {
static void EmitClut(u32 op) {
u32 addr = gstate.getClutAddress();
u32 bytes = (op & 0x3F) * 32;
// Actually should only be 0x3F, but we allow enhanced CLUTs. See #15727.
u32 blocks = (op & 0x7F) == 0x40 ? 0x40 : (op & 0x3F);
u32 bytes = blocks * 32;
bytes = Memory::ValidSize(addr, bytes);
if (bytes != 0) {