mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
debugimgui: pressing Enter on an empty console input box does a single step.
This commit is contained in:
parent
6990438ba2
commit
36ca96bcfe
@ -437,8 +437,14 @@ void debug_imgui::handle_console(running_machine* machine)
|
|||||||
{
|
{
|
||||||
if(view_main_console->exec_cmd && view_main_console->type == DVT_CONSOLE)
|
if(view_main_console->exec_cmd && view_main_console->type == DVT_CONSOLE)
|
||||||
{
|
{
|
||||||
if(strlen(view_main_console->console_input) > 0)
|
// if console input is empty, then do a single step
|
||||||
debug_console_execute_command(*m_machine, view_main_console->console_input, 1);
|
if(strlen(view_main_console->console_input) == 0)
|
||||||
|
{
|
||||||
|
debug_cpu_get_visible_cpu(*m_machine)->debug()->single_step();
|
||||||
|
view_main_console->exec_cmd = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
debug_console_execute_command(*m_machine, view_main_console->console_input, 1);
|
||||||
// check for commands that start execution (so that input fields can be disabled)
|
// check for commands that start execution (so that input fields can be disabled)
|
||||||
if(strcmp(view_main_console->console_input,"g") == 0)
|
if(strcmp(view_main_console->console_input,"g") == 0)
|
||||||
m_running = true;
|
m_running = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user