From 89a376924fe72b3ad4ba61e70f33f62dad42727d Mon Sep 17 00:00:00 2001 From: trelemar Date: Sat, 24 Feb 2018 22:57:21 -0500 Subject: [PATCH] Added "wiki" command to open github wiki in browser --- src/console.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/console.c b/src/console.c index 0035814..51db982 100644 --- a/src/console.c +++ b/src/console.c @@ -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},