Don't crash when the virtual PSP isn't inited.

This commit is contained in:
The Dax 2014-01-02 14:55:09 -05:00
parent 9281fccacd
commit db4abcd0c5

View File

@ -813,7 +813,8 @@ void CDisasm::UpdateDialog(bool _bComplete)
rl->redraw();
// Update Debug Counter
wchar_t tempTicks[24];
_snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks);
if (PSP_IsInited())
_snwprintf(tempTicks, 24, L"%lld", CoreTiming::GetTicks()-lastTicks);
SetDlgItemText(m_hDlg, IDC_DEBUG_COUNT, tempTicks);
// Update Register Dialog