Skip to content

Commit

Permalink
3rdParty: update rom size patch for mupen64plus-core
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 10, 2025
1 parent 116eeb3 commit 530a48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct cart_rom

static osal_inline uint32_t rom_address(uint32_t address)
{
return (address & 0x03fffffc);
return (address & 0x0ffffffc);
}

void init_cart_rom(struct cart_rom* cart_rom,
Expand Down
2 changes: 1 addition & 1 deletion Source/3rdParty/mupen64plus-core/src/device/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void init_device(struct device* dev,
{ A(MM_DD_ROM, 0x1ffffff), M64P_MEM_NOTHING, { NULL, RW(open_bus) } },
{ A(MM_DOM2_ADDR2, 0x1ffff), M64P_MEM_FLASHRAMSTAT, { &dev->cart, RW(cart_dom2) } },
{ A(MM_IS_VIEWER, 0xfff), M64P_MEM_NOTHING, { &dev->is, RW(is_viewer) } },
{ A(MM_CART_ROM, min(rom_size-1, 0x3ffffff)), M64P_MEM_ROM, { &dev->cart.cart_rom, RW(cart_rom) } },
{ A(MM_CART_ROM, min(rom_size-1, 0xfbfffff)), M64P_MEM_ROM, { &dev->cart.cart_rom, RW(cart_rom) } },
{ A(MM_PIF_MEM, 0xffff), M64P_MEM_PIF, { &dev->pif, RW(pif_mem) } }
};

Expand Down

0 comments on commit 530a48a

Please sign in to comment.