Merge pull request #550 from trelemar/master

Added "wiki" command to open github wiki in browser
This commit is contained in:
Vadim Grigoruk 2018-02-27 10:44:25 +03:00 committed by GitHub
commit cb4076fd3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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},