mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-11 10:24:43 +00:00
Merge pull request #4980 from thedax/debuggerCrashFix
Win32/Debugger: Don't crash when the virtual PSP isn't inited.
This commit is contained in:
commit
4982c6bd1e
@ -813,9 +813,10 @@ void CDisasm::UpdateDialog(bool _bComplete)
|
||||
rl->redraw();
|
||||
// Update Debug Counter
|
||||
wchar_t tempTicks[24];
|
||||
_snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks);
|
||||
SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks);
|
||||
|
||||
if (PSP_IsInited()) {
|
||||
_snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks() - lastTicks);
|
||||
SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks);
|
||||
}
|
||||
// Update Register Dialog
|
||||
for (int i=0; i<numCPUs; i++)
|
||||
if (memoryWindow[i])
|
||||
|
Loading…
Reference in New Issue
Block a user