From 5ebdc209af99dad33c4606d3c2b548dcc7feaf39 Mon Sep 17 00:00:00 2001 From: vadosnaprimer Date: Mon, 11 Dec 2017 01:11:17 +0300 Subject: add command to print all debugger help to html file tweak static_help_list spacing to always pad commands and never pad explanations --- src/emu/debug/debugcmd.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/emu/debug/debugcmd.cpp') diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index 1b48be30e1f..6c1db21dba6 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -137,6 +137,7 @@ debugger_commands::debugger_commands(running_machine& machine, debugger_cpu& cpu /* add all the commands */ m_console.register_command("help", CMDFLAG_NONE, 0, 0, 1, std::bind(&debugger_commands::execute_help, this, _1, _2)); + m_console.register_command("html", CMDFLAG_NONE, 0, 0, 0, std::bind(&debugger_commands::execute_html, this, _1, _2)); m_console.register_command("print", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_print, this, _1, _2)); m_console.register_command("printf", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_printf, this, _1, _2)); m_console.register_command("logerror", CMDFLAG_NONE, 0, 1, MAX_COMMAND_PARAMS, std::bind(&debugger_commands::execute_logerror, this, _1, _2)); @@ -553,6 +554,19 @@ void debugger_commands::execute_help(int ref, const std::vector &pa } +/*------------------------------------------------- + execute_html - generate debughelp.html +-------------------------------------------------*/ + +void debugger_commands::execute_html(int ref, const std::vector ¶ms) +{ + if (debug_generate_html()) + m_console.printf("debughelp.html has been successfully created.\n"); + else + m_console.printf("Error creating debughelp.html."); +} + + /*------------------------------------------------- execute_print - execute the print command -------------------------------------------------*/ -- cgit v1.2.3