mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
Speed up game start under Windows by not filling the symbol listbox until the disasm window is opened.
This commit is contained in:
1 parent
6ac9dfe6b5
commit
84b36d6e61
4 files changed
+47
-33
No files matched your search
@@ -848,22 +848,33 @@ void CDisasm::SetDebugMode(bool _bDebug, bool switchPC)
|
||||
}
|
||||
}
|
||||
|
||||
void CDisasm::NotifyMapLoaded()
|
||||
{
|
||||
if (g_symbolMap)
|
||||
g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST),ST_FUNCTION);
|
||||
CtrlDisAsmView *ptr = CtrlDisAsmView::getFrom(GetDlgItem(m_hDlg,IDC_DISASMVIEW));
|
||||
void CDisasm::Show(bool bShow) {
|
||||
if (deferredSymbolFill_ && bShow) {
|
||||
if (g_symbolMap)
|
||||
g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION);
|
||||
deferredSymbolFill_ = false;
|
||||
}
|
||||
Dialog::Show(bShow);
|
||||
}
|
||||
|
||||
void CDisasm::NotifyMapLoaded() {
|
||||
if (m_bShowState == SW_SHOW) {
|
||||
if (g_symbolMap)
|
||||
g_symbolMap->FillSymbolListBox(GetDlgItem(m_hDlg, IDC_FUNCTIONLIST), ST_FUNCTION);
|
||||
} else {
|
||||
deferredSymbolFill_ = true;
|
||||
}
|
||||
CtrlDisAsmView *ptr = CtrlDisAsmView::getFrom(GetDlgItem(m_hDlg, IDC_DISASMVIEW));
|
||||
ptr->clearFunctions();
|
||||
ptr->redraw();
|
||||
}
|
||||
|
||||
void CDisasm::Goto(u32 addr)
|
||||
{
|
||||
CtrlDisAsmView *ptr = CtrlDisAsmView::getFrom(GetDlgItem(m_hDlg,IDC_DISASMVIEW));
|
||||
CtrlDisAsmView *ptr = CtrlDisAsmView::getFrom(GetDlgItem(m_hDlg, IDC_DISASMVIEW));
|
||||
ptr->gotoAddr(addr);
|
||||
SetFocus(GetDlgItem(m_hDlg, IDC_DISASMVIEW));
|
||||
ptr->redraw();
|
||||
|
||||
}
|
||||
|
||||
void CDisasm::UpdateDialog(bool _bComplete)
|
||||
|
||||
Reference in new issue
Block a user