Merge pull request #357 from josefnpat/console-version-command
Adding version command to console
This commit is contained in:
commit
7a909abdc6
|
@ -858,6 +858,13 @@ static void onConsoleKeymapCommand(Console* console, const char* param)
|
||||||
commandDone(console);
|
commandDone(console);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void onConsoleVersionCommand(Console* console, const char* param)
|
||||||
|
{
|
||||||
|
printBack(console, "\n");
|
||||||
|
consolePrint(console, TIC_VERSION_LABEL, CONSOLE_BACK_TEXT_COLOR);
|
||||||
|
commandDone(console);
|
||||||
|
}
|
||||||
|
|
||||||
static void onConsoleConfigCommand(Console* console, const char* param)
|
static void onConsoleConfigCommand(Console* console, const char* param)
|
||||||
{
|
{
|
||||||
if(param == NULL)
|
if(param == NULL)
|
||||||
|
@ -1832,6 +1839,7 @@ static const struct
|
||||||
{"demo", NULL, "install demo carts", onConsoleInstallDemosCommand},
|
{"demo", NULL, "install demo carts", onConsoleInstallDemosCommand},
|
||||||
{"config", NULL, "edit TIC config", onConsoleConfigCommand},
|
{"config", NULL, "edit TIC config", onConsoleConfigCommand},
|
||||||
{"keymap", NULL, "configure keyboard mapping", onConsoleKeymapCommand},
|
{"keymap", NULL, "configure keyboard mapping", onConsoleKeymapCommand},
|
||||||
|
{"version", NULL, "show the current version", onConsoleVersionCommand},
|
||||||
{"surf", NULL, "open carts browser", onConsoleSurfCommand},
|
{"surf", NULL, "open carts browser", onConsoleSurfCommand},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue