mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
GE Debugger: Correct cond break removal warnings.
Oops, they were just always confirming.
This commit is contained in:
parent
0fe7589a9d
commit
c200aa6f4b
@ -910,7 +910,7 @@ void CtrlStateValues::OnDoubleClick(int row, int column) {
|
||||
|
||||
if (column == STATEVALUES_COL_BREAKPOINT) {
|
||||
bool proceed = true;
|
||||
if (IsCmdBreakpoint(info.cmd)) {
|
||||
if (GetCmdBreakpointCond(info.cmd, nullptr)) {
|
||||
int ret = MessageBox(GetHandle(), L"This breakpoint has a custom condition.\nDo you want to remove it?", L"Confirmation", MB_YESNO);
|
||||
proceed = ret == IDYES;
|
||||
}
|
||||
@ -993,7 +993,7 @@ void CtrlStateValues::OnRightClick(int row, int column, const POINT &point) {
|
||||
{
|
||||
case ID_DISASM_TOGGLEBREAKPOINT: {
|
||||
bool proceed = true;
|
||||
if (IsCmdBreakpoint(info.cmd)) {
|
||||
if (GetCmdBreakpointCond(info.cmd, nullptr)) {
|
||||
int ret = MessageBox(GetHandle(), L"This breakpoint has a custom condition.\nDo you want to remove it?", L"Confirmation", MB_YESNO);
|
||||
proceed = ret == IDYES;
|
||||
}
|
||||
|
@ -571,9 +571,11 @@ void CtrlMatrixList::ToggleBreakpoint(int row) {
|
||||
if (state) {
|
||||
GPUBreakpoints::AddCmdBreakpoint(info->cmd);
|
||||
} else {
|
||||
int ret = MessageBox(GetHandle(), L"This breakpoint has a custom condition.\nDo you want to remove it?", L"Confirmation", MB_YESNO);
|
||||
if (ret != IDYES)
|
||||
return;
|
||||
if (GPUBreakpoints::GetCmdBreakpointCond(info->cmd, nullptr)) {
|
||||
int ret = MessageBox(GetHandle(), L"This breakpoint has a custom condition.\nDo you want to remove it?", L"Confirmation", MB_YESNO);
|
||||
if (ret != IDYES)
|
||||
return;
|
||||
}
|
||||
GPUBreakpoints::RemoveCmdBreakpoint(info->cmd);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user