Permalink
Browse files

Merge pull request #6851 from lioncash/usage

BreakpointWidget: Move variables closer to usage sites in OnLoad()
  • Loading branch information...
leoetlino committed May 14, 2018
2 parents b5761f9 + a0a0295 commit 159f6115e2a10e3048b6fd970aaaeeffd7362f90
Showing with 6 additions and 7 deletions.
  1. +6 −7 Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp
@@ -253,26 +253,25 @@ void BreakpointWidget::OnNewBreakpoint()
void BreakpointWidget::OnLoad()
{
IniFile ini;
BreakPoints::TBreakPointsStr newbps;
MemChecks::TMemChecksStr newmcs;
if (!ini.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + SConfig::GetInstance().GetGameID() + ".ini",
false))
{
return;
}
if (ini.GetLines("BreakPoints", &newbps, false))
BreakPoints::TBreakPointsStr new_bps;
if (ini.GetLines("BreakPoints", &new_bps, false))
{
PowerPC::breakpoints.Clear();
PowerPC::breakpoints.AddFromStrings(newbps);
PowerPC::breakpoints.AddFromStrings(new_bps);
}
if (ini.GetLines("MemoryBreakPoints", &newmcs, false))
MemChecks::TMemChecksStr new_mcs;
if (ini.GetLines("MemoryBreakPoints", &new_mcs, false))
{
PowerPC::memchecks.Clear();
Settings::Instance().blockSignals(true);
PowerPC::memchecks.AddFromStrings(newmcs);
PowerPC::memchecks.AddFromStrings(new_mcs);
Settings::Instance().blockSignals(false);
}

0 comments on commit 159f611

Please sign in to comment.