Debugger: Fixed trace logger refreshing when no changes

+ Fixed byte coloring in hex viewer for GB games
This commit is contained in:
Sour 2020-07-03 16:18:03 -04:00
parent eb89559f4f
commit 909e75a5ec
3 changed files with 3 additions and 4 deletions

View file

@ -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();

View file

@ -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(() => {

View file

@ -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;