Merge pull request #842 from eightyeight/console-func-refactor

jamesu's console function refactor
This commit is contained in:
Daniel Buckmaster 2014-10-24 00:42:58 +11:00
commit 81a385094f
94 changed files with 1886 additions and 721 deletions

View file

@ -335,7 +335,7 @@ void Input::log( const char* format, ... )
ConsoleFunction( inputLog, void, 2, 2, "inputLog( string )" )
{
argc;
Input::log( "%s\n", argv[1] );
Input::log( "%s\n", (const char*)argv[1] );
}
#endif // LOG_INPUT

View file

@ -70,7 +70,7 @@ ConsoleFunction( MathInit, void, 1, 10, "(detect|C|FPU|MMX|3DNOW|SSE|...)")
properties |= CPU_PROP_SSE;
continue;
}
Con::printf("Error: MathInit(): ignoring unknown math extension '%s'", *argv);
Con::printf("Error: MathInit(): ignoring unknown math extension '%s'", (const char*)argv[0]);
}
Math::init(properties);
}