Added "wiki" command to open github wiki in browser

This commit is contained in:
trelemar 2018-02-24 22:57:21 -05:00
parent b84a6ff78c
commit 89a376924f
1 changed files with 7 additions and 0 deletions

View File

@ -323,6 +323,12 @@ static void processConsoleBackspace(Console* console)
static void onConsoleHelpCommand(Console* console, const char* param);
static void onConsoleWikiCommand(Console* console, const char* param)
{
getSystem()->openSystemPath("https://github.com/nesbox/TIC-80/wiki");
commandDone(console);
}
static void onConsoleExitCommand(Console* console, const char* param)
{
exitStudio();
@ -2350,6 +2356,7 @@ static const struct
} AvailableConsoleCommands[] =
{
{"help", NULL, "show this info", onConsoleHelpCommand},
{"wiki", NULL, "open github wiki page", onConsoleWikiCommand},
{"ram", NULL, "show memory info", onConsoleRamCommand},
{"exit", "quit", "exit the application", onConsoleExitCommand},
{"new", NULL, "create new cart", onConsoleNewCommand},