#659 disabled wiki command on Android

This commit is contained in:
Vadim Grigoruk 2018-08-23 23:01:45 +03:00
parent 607ebd6d59
commit 50d7b70d31
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,7 @@ typedef enum
#if defined(__TIC_WINDOWS__) || defined(__TIC_LINUX__) || defined(__TIC_MACOSX__) #if defined(__TIC_WINDOWS__) || defined(__TIC_LINUX__) || defined(__TIC_MACOSX__)
#define CAN_EXPORT 1 #define CAN_EXPORT 1
#define CAN_OPEN_URL 1
#endif #endif
#if defined(CAN_EXPORT) #if defined(CAN_EXPORT)
@ -333,11 +334,13 @@ static void processConsoleBackspace(Console* console)
static void onConsoleHelpCommand(Console* console, const char* param); static void onConsoleHelpCommand(Console* console, const char* param);
#if defined(CAN_OPEN_URL)
static void onConsoleWikiCommand(Console* console, const char* param) static void onConsoleWikiCommand(Console* console, const char* param)
{ {
getSystem()->openSystemPath("https://github.com/nesbox/TIC-80/wiki"); getSystem()->openSystemPath("https://github.com/nesbox/TIC-80/wiki");
commandDone(console); commandDone(console);
} }
#endif
static void onConsoleExitCommand(Console* console, const char* param) static void onConsoleExitCommand(Console* console, const char* param)
{ {
@ -2433,7 +2436,9 @@ static const struct
} AvailableConsoleCommands[] = } AvailableConsoleCommands[] =
{ {
{"help", NULL, "show this info", onConsoleHelpCommand}, {"help", NULL, "show this info", onConsoleHelpCommand},
#if defined(CAN_OPEN_URL)
{"wiki", NULL, "open github wiki page", onConsoleWikiCommand}, {"wiki", NULL, "open github wiki page", onConsoleWikiCommand},
#endif
{"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},