(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:
signde
2004-09-13 06:56:30 +00:00
parent 01dd0219d3
commit 263042cdf2
3 changed files with 50 additions and 16 deletions

View File

@@ -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;