Skip to content

Commit

Permalink
wip patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 9, 2025
1 parent d4e6db2 commit 1429a5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define __STDC_FORMAT_MACROS
#include <inttypes.h>

#define CART_ROM_ADDR_MASK UINT32_C(0x03ffffff);
#define CART_ROM_ADDR_MASK UINT32_C(0xefffffff);


void init_cart_rom(struct cart_rom* cart_rom,
Expand Down
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 & 0xeffffffe);
}

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 @@ -57,7 +57,7 @@ static void get_pi_dma_handler(struct cart* cart, struct dd_controller* dd, uint

if (address >= MM_CART_ROM) {
if (address >= MM_CART_DOM3) {
/* 0x1fd00000 - 0x7fffffff : dom3 addr2, cart rom (Paper Mario (U)) ??? */
/* 0x1fd00000 - 0xffffffff : dom3 addr2, cart rom */
RW(cart, cart_dom3);
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "osal/preproc.h"

enum { RDRAM_MAX_SIZE = 0x800000 };
enum { CART_ROM_MAX_SIZE = 0x4000000 };
enum { CART_ROM_MAX_SIZE = 0x100000000 };
enum { DD_ROM_MAX_SIZE = 0x400000 };

typedef void (*read32fn)(void*,uint32_t,uint32_t*);
Expand Down

0 comments on commit 1429a5c

Please sign in to comment.