1
0
Fork 0

Fix #10074: list_ai console commands and friends were missing help text

pull/10076/head
Charles Pigott 2022-10-10 11:23:09 +01:00
parent c482f05616
commit 24f3022ee0
1 changed files with 16 additions and 0 deletions

View File

@ -1178,6 +1178,10 @@ static void PrintLineByLine(char *buf)
DEF_CONSOLE_CMD(ConListAILibs) DEF_CONSOLE_CMD(ConListAILibs)
{ {
if (argc == 0) {
IConsolePrint(CC_HELP, "List installed AI libraries. Usage: 'list_ai_libs'.");
return true;
}
char buf[4096]; char buf[4096];
AI::GetConsoleLibraryList(buf, lastof(buf)); AI::GetConsoleLibraryList(buf, lastof(buf));
@ -1188,6 +1192,10 @@ DEF_CONSOLE_CMD(ConListAILibs)
DEF_CONSOLE_CMD(ConListAI) DEF_CONSOLE_CMD(ConListAI)
{ {
if (argc == 0) {
IConsolePrint(CC_HELP, "List installed AIs. Usage: 'list_ai'.");
return true;
}
char buf[4096]; char buf[4096];
AI::GetConsoleList(buf, lastof(buf)); AI::GetConsoleList(buf, lastof(buf));
@ -1198,6 +1206,10 @@ DEF_CONSOLE_CMD(ConListAI)
DEF_CONSOLE_CMD(ConListGameLibs) DEF_CONSOLE_CMD(ConListGameLibs)
{ {
if (argc == 0) {
IConsolePrint(CC_HELP, "List installed Game Script libraries. Usage: 'list_game_libs'.");
return true;
}
char buf[4096]; char buf[4096];
Game::GetConsoleLibraryList(buf, lastof(buf)); Game::GetConsoleLibraryList(buf, lastof(buf));
@ -1208,6 +1220,10 @@ DEF_CONSOLE_CMD(ConListGameLibs)
DEF_CONSOLE_CMD(ConListGame) DEF_CONSOLE_CMD(ConListGame)
{ {
if (argc == 0) {
IConsolePrint(CC_HELP, "List installed Game Scripts. Usage: 'list_game'.");
return true;
}
char buf[4096]; char buf[4096];
Game::GetConsoleList(buf, lastof(buf)); Game::GetConsoleList(buf, lastof(buf));