diff options
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -187,7 +187,8 @@ void IConsoleInit() extern char _openttd_revision[]; #endif _iconsole_color_default = 1; - _iconsole_color_error = 3; + _iconsole_color_error = 3;
+ _iconsole_color_warning = 13; _iconsole_color_debug = 5; _iconsole_color_commands = 2; _iconsole_scroll=79; @@ -358,6 +359,11 @@ void IConsoleError(const byte* string) { if (_stdlib_developer>0) IConsolePrintF(_iconsole_color_error, "ERROR: %s", string); } +
+void IConsoleWarning(const byte* string)
+{
+ if (_stdlib_developer>0) IConsolePrintF(_iconsole_color_warning, "WARNING: %s", string);
+}
void IConsoleCmdRegister(const byte * name, void * addr) { @@ -390,7 +396,7 @@ void IConsoleCmdRegister(const byte * name, void * addr) } } -void* IConsoleCmdGet(const byte * name) +_iconsole_cmd * IConsoleCmdGet(const byte * name) { _iconsole_cmd * item; |