MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / switchToLayoutWithCPU

Method switchToLayoutWithCPU

pcsx2-qt/Debugger/Docking/DockManager.cpp:154–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool DockManager::switchToLayoutWithCPU(BreakPointCpu cpu, bool blink_tab)
155{
156 // Don't interrupt the user if the current layout already has the right CPU.
157 if (m_current_layout != DockLayout::INVALID_INDEX && m_layouts.at(m_current_layout).cpu() == cpu)
158 {
159 switchToLayout(m_current_layout, blink_tab);
160 return true;
161 }
162
163 for (DockLayout::Index i = 0; i < m_layouts.size(); i++)
164 {
165 if (m_layouts[i].cpu() == cpu)
166 {
167 switchToLayout(i, blink_tab);
168 return true;
169 }
170 }
171
172 return false;
173}
174
175void DockManager::loadLayouts()
176{

Callers 1

onVMPausedMethod · 0.80

Calls 3

atMethod · 0.80
cpuMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected