more run-in-invalid-state case tweaks

This commit is contained in:
Ryan Fleury
2025-05-01 14:17:57 -07:00
parent b20f003e7f
commit 23601f38a2
2 changed files with 14 additions and 2 deletions
+9
View File
@@ -12088,6 +12088,15 @@ rd_frame(void)
}
}
// rjf: run -> no targets at all, no processes? -> do helper for add-target
if((kind == RD_CmdKind_Run ||
kind == RD_CmdKind_StepInto ||
kind == RD_CmdKind_StepOver) && targets.count == 0 && processes.count == 0)
{
rd_cmd(RD_CmdKind_RunCommand, .cmd_name = rd_cmd_kind_info_table[RD_CmdKind_AddTarget].string);
break;
}
// rjf: run -> no active targets, no processes? -> do helper for launch-and-run
if((kind == RD_CmdKind_Run ||
kind == RD_CmdKind_StepInto ||