diff options
author | 2017-12-11 01:11:17 +0300 | |
---|---|---|
committer | 2017-12-11 23:54:58 +0300 | |
commit | 5ebdc209af99dad33c4606d3c2b548dcc7feaf39 (patch) | |
tree | 8bc456169f8bfb215bd0cb24b5893faf27ccb27d /src/emu/debug/debugcmd.cpp | |
parent | 869185e70ba7823e67fef4439e2d51d8ce5b1797 (diff) |
add command to print all debugger help to html file
tweak static_help_list spacing to always pad commands and never pad explanations
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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)); @@ -554,6 +555,19 @@ void debugger_commands::execute_help(int ref, const std::vector<std::string> &pa /*------------------------------------------------- + execute_html - generate debughelp.html +-------------------------------------------------*/ + +void debugger_commands::execute_html(int ref, const std::vector<std::string> ¶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 -------------------------------------------------*/ |