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/Games/DeathMatch/Code/ScriptState.cpp

    r138 r149  
    2525#include "TypeSys.hpp" 
    2626#include "ConsoleCommands/Console.hpp" 
     27#include "ConsoleCommands/Console_Lua.hpp" 
    2728#include "ConsoleCommands/ConsoleInterpreter.hpp" 
    2829#include "ConsoleCommands/ConFunc.hpp" 
     
    6465 
    6566    // Load the console library. (Adds a global table with name "Console" to the LuaState with the functions of the ConsoleI interface.) 
    66     cf::ConsoleI::RegisterLua(LuaState); 
     67    cf::Console_RegisterLua(LuaState); 
    6768 
    6869    // 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.)