mirror of
https://github.com/dborth/vbagx.git
synced 2025-01-24 08:21:11 +01:00
Fix for issue 57. http://code.google.com/p/vba-wii/issues/detail?id=57
This commit is contained in:
parent
afec8200f8
commit
0f833a9d87
@ -80,6 +80,8 @@
|
|||||||
#define MKDA gid('A','X','D')
|
#define MKDA gid('A','X','D')
|
||||||
#define MKTE gid('A','W','4')
|
#define MKTE gid('A','W','4')
|
||||||
|
|
||||||
|
#define CORVETTE gid('A','V','C')
|
||||||
|
|
||||||
u8 gbReadMemory(register u16 address);
|
u8 gbReadMemory(register u16 address);
|
||||||
void gbWriteMemory(register u16 address, register u8 value);
|
void gbWriteMemory(register u16 address, register u8 value);
|
||||||
|
|
||||||
|
@ -33,6 +33,10 @@ extern bool timer3On;
|
|||||||
extern int timer3Ticks;
|
extern int timer3Ticks;
|
||||||
extern int timer3ClockReload;
|
extern int timer3ClockReload;
|
||||||
extern int cpuTotalTicks;
|
extern int cpuTotalTicks;
|
||||||
|
extern u32 RomIdCode;
|
||||||
|
|
||||||
|
#define gid(a,b,c) (a|(b<<8)|(c<<16))
|
||||||
|
#define CORVETTE gid('A','V','C')
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* Nintendo GC Virtual Memory function override
|
* Nintendo GC Virtual Memory function override
|
||||||
@ -560,6 +564,7 @@ static inline void CPUWriteMemory(u32 address, u32 value)
|
|||||||
value);
|
value);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
if(address < 0x5000400 || (RomIdCode & 0xFFFFFF) != CORVETTE)
|
||||||
WRITE32LE(((u32 *)&paletteRAM[address & 0x3FC]), value);
|
WRITE32LE(((u32 *)&paletteRAM[address & 0x3FC]), value);
|
||||||
break;
|
break;
|
||||||
case 0x06:
|
case 0x06:
|
||||||
@ -656,6 +661,7 @@ static inline void CPUWriteHalfWord(u32 address, u16 value)
|
|||||||
value);
|
value);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
if(address < 0x5000400 || (RomIdCode & 0xFFFFFF) != CORVETTE)
|
||||||
WRITE16LE(((u16 *)&paletteRAM[address & 0x3fe]), value);
|
WRITE16LE(((u16 *)&paletteRAM[address & 0x3fe]), value);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user