This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 369 for ps


Ignore:
Timestamp:
06/02/04 22:39:21 (21 years ago)
Author:
janwas
Message:

integrated console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/main.cpp

    r334 r369  
    1313#include "input.h"
    1414#include "lib.h"
    15 #include "posix.h"
    1615#include "res/res.h"
    1716#ifdef _M_IX86
    1817#include "sysdep/ia32.h"
    1918#endif
     19
     20#include "ps/CConsole.h"
     21
    2022#include "Config.h"
    2123#include "MapReader.h"
     
    3941#endif
    4042
     43CConsole* g_Console = 0;
     44extern bool conInputHandler(const SDL_Event& ev);
     45
    4146
    4247
     
    7681extern int allow_reload();
    7782extern int dir_add_watch(const char* const dir, bool watch_subdirs);
     83
     84
     85
     86
     87void Testing (void)
     88{
     89    g_Console->InsertMessage("Testing Function Registration");
     90}
     91
    7892
    7993
     
    184198        c = ev.key.keysym.sym;
    185199        keys[c] = true;
     200
    186201        switch(c)
    187202        {
     
    350365
    351366
     367    g_Console->Render();
    352368
    353369    // restore
     
    528544    font = font_load("fonts/verdana.fnt");
    529545
     546    g_Console = new CConsole;
     547
    530548    // create renderer
    531549    new CRenderer;
     
    588606    in_add_handler(terr_handler);
    589607
     608    in_add_handler(conInputHandler);
     609
    590610    // render everything to a blank frame to force renderer to load everything
    591611    RenderNoCull();
     612
     613g_Console->RegisterFunc(Testing, "Testing");
    592614
    593615
Note: See TracChangeset for help on using the changeset viewer.