breakpoints can now be deleted
This commit is contained in:
parent
a93d653a93
commit
e5cc1565fd
|
@ -227,10 +227,20 @@ void Disassembler::BreakpointWindow()
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
char label[6];
|
char label[6];
|
||||||
for (const Breakpoint& breakpoint : breakpoints)
|
for (std::set<Breakpoint>::const_iterator it = breakpoints.begin(); it != breakpoints.end(); )
|
||||||
{
|
{
|
||||||
std::sprintf(label, "$%04X", breakpoint.GetAddress());
|
if (ImGui::Button("X"))
|
||||||
ImGui::Checkbox(label, &breakpoint.active);
|
{
|
||||||
|
it = breakpoints.erase(it);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui::SameLine();
|
||||||
|
|
||||||
|
std::sprintf(label, "$%04X", it->GetAddress());
|
||||||
|
ImGui::Checkbox(label, &it->active);
|
||||||
|
|
||||||
|
it++;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
Loading…
Reference in a new issue