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

Method updateFromSettings

pcsx2-qt/Debugger/DebuggerWindow.cpp:291–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void DebuggerWindow::updateFromSettings()
292{
293 const int refresh_interval = Host::GetBaseIntSettingValue("Debugger/UserInterface", "RefreshInterval", 1000);
294 const int effective_refresh_interval = std::clamp(refresh_interval, 10, 100000);
295
296 if (!m_refresh_timer)
297 {
298 m_refresh_timer = new QTimer(this);
299 connect(m_refresh_timer, &QTimer::timeout, this, []() {
300 DebuggerView::broadcastEvent(DebuggerEvents::Refresh());
301 });
302 m_refresh_timer->start(effective_refresh_interval);
303 }
304 else
305 {
306 m_refresh_timer->setInterval(effective_refresh_interval);
307 }
308}
309
310void DebuggerWindow::onVMStarting()
311{

Callers 1

DebugSettingsWidgetMethod · 0.80

Calls 3

RefreshClass · 0.85
clampFunction · 0.50
startMethod · 0.45

Tested by

no test coverage detected