1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Merge pull request #1627 from Gymnasiast/console-ux

Console UX improvements, fixes #1622
This commit is contained in:
Duncan
2015-07-16 12:24:35 +01:00

View File

@@ -88,6 +88,7 @@ void console_init()
{
_consoleInitialised = true;
console_writeline(OPENRCT2_NAME " " OPENRCT2_VERSION);
console_writeline("Type 'help' for a list of available commands. Type 'hide' to hide the console.");
console_writeline("");
console_write_prompt();
}
@@ -1011,6 +1012,10 @@ void console_execute_silent(const char *src)
if (argc == 0)
return;
// Aliases for hiding the console
if(strcmp(argv[0],"quit") == 0 || strcmp(argv[0],"exit") == 0)
argv[0]="hide";
bool validCommand = false;
for (int i = 0; i < countof(console_command_table); i++) {
if (strcmp(argv[0], console_command_table[i].command) == 0) {
@@ -1037,4 +1042,4 @@ static bool invalidArguments(bool *invalid, bool arguments)
return false;
}
return true;
}
}