@@ -31,9 +31,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3131#include " client/keys.h"
3232#include " client/input.h"
3333
34- nox ::App *nox ::globalApp = nullptr ;
34+ chr ::App *chr ::globalApp = nullptr ;
3535
36- void nox ::App::Initialize ()
36+ void chr ::App::Initialize ()
3737{
3838 int status = SDL_Init (
3939 SDL_INIT_VIDEO |
@@ -48,13 +48,13 @@ void nox::App::Initialize()
4848 Qcommon_Init ( argc_, argv_ );
4949}
5050
51- [[noreturn]] void nox ::App::Run ()
51+ [[noreturn]] void chr ::App::Run ()
5252{
5353 unsigned int time, newTime;
5454 unsigned int oldTime = GetNumMilliseconds ();
5555 while ( true )
5656 {
57- nox ::globalApp->PollEvents ();
57+ chr ::globalApp->PollEvents ();
5858
5959 do
6060 {
@@ -73,7 +73,7 @@ void nox::App::Initialize()
7373
7474unsigned int sys_frame_time = 0 ;// todo: kill
7575
76- void nox ::App::SendKeyEvents ()
76+ void chr ::App::SendKeyEvents ()
7777{
7878 SDL_PumpEvents ();
7979
@@ -82,13 +82,13 @@ void nox::App::SendKeyEvents()
8282 sys_frame_time = GetNumMilliseconds ();// FIXME: should this be at start?
8383}
8484
85- unsigned int nox ::App::GetNumMilliseconds ()
85+ unsigned int chr ::App::GetNumMilliseconds ()
8686{
8787 lastMs_ = SDL_GetTicks ();
8888 return lastMs_;
8989}
9090
91- char *nox ::App::GetClipboardData ()
91+ char *chr ::App::GetClipboardData ()
9292{
9393 if ( !SDL_HasClipboardText () )
9494 {
@@ -99,7 +99,7 @@ char *nox::App::GetClipboardData()
9999}
100100
101101bool IN_HandleEvent ( const SDL_Event &event );
102- void nox ::App::PollEvents ()
102+ void chr ::App::PollEvents ()
103103{
104104 SDL_Event event;
105105 while ( SDL_PollEvent ( &event ) )
@@ -140,7 +140,7 @@ void nox::App::PollEvents()
140140/* *
141141 * This pushes the given string to the native terminal/console.
142142 */
143- void nox ::App::PushConsoleOutput ( const char *text )
143+ void chr ::App::PushConsoleOutput ( const char *text )
144144{
145145#if defined( _WIN32 ) && defined( _MSC_VER )
146146 OutputDebugString ( text );
@@ -149,7 +149,7 @@ void nox::App::PushConsoleOutput( const char *text )
149149#endif
150150}
151151
152- void nox ::App::ShowCursor ( bool show )
152+ void chr ::App::ShowCursor ( bool show )
153153{
154154 SDL_ShowCursor ( show );
155155}
@@ -163,9 +163,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
163163extern " C" int main ( int argc, char **argv )
164164{
165165#endif
166- nox ::globalApp = new nox ::App ( argc, argv );
166+ chr ::globalApp = new chr ::App ( argc, argv );
167167
168168 // todo: consider combining these??
169- nox ::globalApp->Initialize ();
170- nox ::globalApp->Run ();
169+ chr ::globalApp->Initialize ();
170+ chr ::globalApp->Run ();
171171}
0 commit comments