Added "wiki" command to open github wiki in browser
This commit is contained in:
parent
b84a6ff78c
commit
89a376924f
|
@ -323,6 +323,12 @@ static void processConsoleBackspace(Console* console)
|
||||||
|
|
||||||
static void onConsoleHelpCommand(Console* console, const char* param);
|
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)
|
static void onConsoleExitCommand(Console* console, const char* param)
|
||||||
{
|
{
|
||||||
exitStudio();
|
exitStudio();
|
||||||
|
@ -2350,6 +2356,7 @@ static const struct
|
||||||
} AvailableConsoleCommands[] =
|
} AvailableConsoleCommands[] =
|
||||||
{
|
{
|
||||||
{"help", NULL, "show this info", onConsoleHelpCommand},
|
{"help", NULL, "show this info", onConsoleHelpCommand},
|
||||||
|
{"wiki", NULL, "open github wiki page", onConsoleWikiCommand},
|
||||||
{"ram", NULL, "show memory info", onConsoleRamCommand},
|
{"ram", NULL, "show memory info", onConsoleRamCommand},
|
||||||
{"exit", "quit", "exit the application", onConsoleExitCommand},
|
{"exit", "quit", "exit the application", onConsoleExitCommand},
|
||||||
{"new", NULL, "create new cart", onConsoleNewCommand},
|
{"new", NULL, "create new cart", onConsoleNewCommand},
|
||||||
|
|
Loading…
Reference in New Issue