mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 12:09:05 -06:00
Merge pull request #4131 from aldelaro5/memoryViewer-memChecks-improvements
Add the configuration of how a memory check is added via the memory window
This commit is contained in:
@ -140,7 +140,7 @@ bool PPCDebugInterface::IsMemCheck(unsigned int address)
|
||||
return (PowerPC::memchecks.HasAny() && PowerPC::memchecks.GetMemCheck(address));
|
||||
}
|
||||
|
||||
void PPCDebugInterface::ToggleMemCheck(unsigned int address)
|
||||
void PPCDebugInterface::ToggleMemCheck(unsigned int address, bool read, bool write, bool log)
|
||||
{
|
||||
if (PowerPC::memchecks.HasAny() && !PowerPC::memchecks.GetMemCheck(address))
|
||||
{
|
||||
@ -148,10 +148,10 @@ void PPCDebugInterface::ToggleMemCheck(unsigned int address)
|
||||
TMemCheck MemCheck;
|
||||
MemCheck.StartAddress = address;
|
||||
MemCheck.EndAddress = address;
|
||||
MemCheck.OnRead = true;
|
||||
MemCheck.OnWrite = true;
|
||||
MemCheck.OnRead = read;
|
||||
MemCheck.OnWrite = write;
|
||||
|
||||
MemCheck.Log = true;
|
||||
MemCheck.Log = log;
|
||||
MemCheck.Break = true;
|
||||
|
||||
PowerPC::memchecks.Add(MemCheck);
|
||||
|
Reference in New Issue
Block a user