Debugger: Fixed trace logger refreshing when no changes
+ Fixed byte coloring in hex viewer for GB games
This commit is contained in:
parent
eb89559f4f
commit
909e75a5ec
3 changed files with 3 additions and 4 deletions
|
@ -474,7 +474,7 @@ void Debugger::BreakImmediately(BreakSource source)
|
|||
|
||||
void Debugger::GetState(DebugState &state, bool partialPpuState)
|
||||
{
|
||||
state.MasterClock = _memoryManager->GetMasterClock();
|
||||
state.MasterClock = _console->GetMasterClock();
|
||||
state.Cpu = _cpu->GetState();
|
||||
_ppu->GetState(state.Ppu, partialPpuState);
|
||||
state.Spc = _spc->GetState();
|
||||
|
|
|
@ -49,9 +49,8 @@ namespace Mesen.GUI.Debugger.Controls
|
|||
|
||||
DebugApi.GetMemoryAccessCounts(_memoryType, ref _newCounts);
|
||||
|
||||
bool isGameboyMode = EmuApi.GetRomInfo().CoprocessorType == CoprocessorType.Gameboy;
|
||||
DebugState state = DebugApi.GetState();
|
||||
_masterClock = isGameboyMode ? state.Gameboy.MemoryManager.CycleCount : state.MasterClock;
|
||||
_masterClock = state.MasterClock;
|
||||
|
||||
_sorting = true;
|
||||
Task.Run(() => {
|
||||
|
|
|
@ -330,7 +330,7 @@ namespace Mesen.GUI.Debugger
|
|||
DebugState state = DebugApi.GetState();
|
||||
if(_previousMasterClock != state.MasterClock || forceUpdate) {
|
||||
string newTrace = DebugApi.GetExecutionTrace((UInt32)_lineCount);
|
||||
_previousMasterClock = state.Cpu.CycleCount;
|
||||
_previousMasterClock = state.MasterClock;
|
||||
_previousTrace = newTrace;
|
||||
|
||||
int index = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue