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/GuiSys/GuiImpl.cpp

    r136 r149  
    2727#include "WindowCreateParams.hpp" 
    2828#include "ConsoleCommands/Console.hpp" 
     29#include "ConsoleCommands/Console_Lua.hpp" 
    2930#include "ConsoleCommands/ConsoleInterpreter.hpp" 
    3031#include "MaterialSystem/Renderer.hpp" 
     
    8889 
    8990    // Load the console library. (Adds a global table with name "Console" to the LuaState with the functions of the ConsoleI interface.) 
    90     cf::ConsoleI::RegisterLua(LuaState); 
     91    cf::Console_RegisterLua(LuaState); 
    9192 
    9293    // Load the "ci" (console interpreter) library. (Adds a global table with name "ci" to the LuaState with (some of) the functions of the ConsoleInterpreterI interface.)