mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Memmap: Fix a CopyToEmu bug
ValidCopyRange incorrectly returned false and stopped a CopyToEmu when pressing B+X+Start in some GameCube games (for instance Metroid Prime) after the DVD thread was implemented
This commit is contained in:
@ -247,8 +247,8 @@ bool AreMemoryBreakpointsActivated()
|
|||||||
static inline bool ValidCopyRange(u32 address, size_t size)
|
static inline bool ValidCopyRange(u32 address, size_t size)
|
||||||
{
|
{
|
||||||
return (GetPointer(address) != nullptr &&
|
return (GetPointer(address) != nullptr &&
|
||||||
GetPointer(address + u32(size)) != nullptr &&
|
GetPointer(address + u32(size) - 1) != nullptr &&
|
||||||
size < EXRAM_SIZE); // Make sure we don't have a range spanning seperate 2 banks
|
size < EXRAM_SIZE); // Make sure we don't have a range spanning 2 separate banks
|
||||||
}
|
}
|
||||||
|
|
||||||
void CopyFromEmu(void* data, u32 address, size_t size)
|
void CopyFromEmu(void* data, u32 address, size_t size)
|
||||||
|
Reference in New Issue
Block a user