forked from mirror/OpenTTD
(svn r230) -Feature: IConsoleWarning for warning messages
-Feature: added info_cmd command -Codechange: renamed "varinfo" to "info_var" -Fix: some const fixes in console.h -Fix: fixed return value of IConsoleCmdGet
This commit is contained in:
10
console.c
10
console.c
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user