mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Add option to change MemCheck condition
This commit is contained in:
1 parent
a39eb4dc4b
commit
a4e89bea25
1 file changed
+15
@@ -965,6 +965,21 @@ static void DrawBreakpointsView(MIPSDebugInterface *mipsDebug, ImConfig &cfg) {
|
||||
if (ImGui::BeginChild("mc_edit")) {
|
||||
auto &mc = mcs[cfg.selectedMemCheck];
|
||||
ImGui::TextUnformatted("Edit memcheck");
|
||||
if (ImGui::BeginCombo("Condition", MemCheckConditionToString(mc.cond))) {
|
||||
if (ImGui::Selectable("Read", mc.cond == MemCheckCondition::MEMCHECK_READ)) {
|
||||
mc.cond = MemCheckCondition::MEMCHECK_READ;
|
||||
}
|
||||
if (ImGui::Selectable("Write", mc.cond == MemCheckCondition::MEMCHECK_WRITE)) {
|
||||
mc.cond = MemCheckCondition::MEMCHECK_WRITE;
|
||||
}
|
||||
if (ImGui::Selectable("Read / Write", mc.cond == MemCheckCondition::MEMCHECK_READWRITE)) {
|
||||
mc.cond = MemCheckCondition::MEMCHECK_READWRITE;
|
||||
}
|
||||
if (ImGui::Selectable("Write On Change", mc.cond == MemCheckCondition::MEMCHECK_WRITE_ONCHANGE)) {
|
||||
mc.cond = MemCheckCondition::MEMCHECK_WRITE_ONCHANGE;
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
ImGui::CheckboxFlags("Enabled", (int *)&mc.result, (int)BREAK_ACTION_PAUSE);
|
||||
ImGui::InputScalar("Start", ImGuiDataType_U32, &mc.start, NULL, NULL, "%08x", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
ImGui::InputScalar("End", ImGuiDataType_U32, &mc.end, NULL, NULL, "%08x", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
|
||||
Reference in new issue
Block a user