Skip to content

Commit

Permalink
lightrec: handle some 32bit-only addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Nov 16, 2023
1 parent 5c30b12 commit ab206b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libpcsxcore/lightrec/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@ static void lightrec_enable_ram(struct lightrec_state *state, bool enable)

static bool lightrec_can_hw_direct(u32 kaddr, bool is_write, u8 size)
{
if (is_write && size != 32) {
// force32 so must go through handlers
if (0x1f801000 <= kaddr && kaddr < 0x1f801024)
return false;
if ((kaddr & 0x1fffff80) == 0x1f801080) // dma
return false;
}

switch (size) {
case 8:
switch (kaddr) {
Expand Down

0 comments on commit ab206b0

Please sign in to comment.