Show
Ignore:
Timestamp:
09/03/10 00:25:58 (21 months ago)
Author:
Carsten
Message:

Revision of Console code:

  • New "composite console" is the new default console, making it easy to add logging into a file and the graphical console during init, and making it unnecessary to reset the console pointer in DLLs that have been initialized before the graphical console.
  • Replaced several old/obsolete printf-statements (in the renderer DLLs) with their proper Console->Print() counterparts.
  • Put the Lua bindings to the global Console into separate files. This way the DLLs can include Console.hpp without being forced to link the Lua libraries in.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/Libs/ConsoleCommands/ConsoleInterpreterImpl.cpp

    r136 r149  
    3232#include "ConVar.hpp" 
    3333#include "Console.hpp" 
     34#include "Console_Lua.hpp" 
    3435 
    3536extern "C" 
     
    7172 
    7273    // Load the console library. (Adds a global table with name "Console" to the LuaState with the functions of the ConsoleI interface.) 
    73     cf::ConsoleI::RegisterLua(LuaState); 
     74    cf::Console_RegisterLua(LuaState); 
    7475 
    7576