From 6dbcded21e7e9614b967b922987be6bcf3f3fe58 Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 4 Apr 2008 18:46:15 +0000 Subject: - moznost nastavit si klavesy na ovladanie v ~/.tuxanci-ng/keycontrol.conf - moznost prekladat texty do roznych jazykov, defult jazyk je EN, nastavenie je v ~/.tuxanci-ng/lang.conf - moznost nastavit server pomocou konfiguraku ./server.conf - uptime v sekudach a samorestartovaci casocvac tam este _NIE_ _JE_ git-svn-id: http://opensvn.csie.org/tuxanci_ng@39 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/main.c | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 27d89aa..e77f044 100644 --- a/src/main.c +++ b/src/main.c @@ -11,6 +11,8 @@ #ifndef PUBLIC_SERVER #include "font.h" +#include "keytable.h" +#include "language.h" #include "image.h" #include "layer.h" #include "interface.h" @@ -46,6 +48,8 @@ static void init() initSDL(); initLayer(); initFont("DejaVuSans.ttf", 16); + initKeyTable(); + initLanguage(); initImageData(); initAudio(); initSound(); @@ -71,6 +75,8 @@ void quit() quitSDL(); quitLayer(); quitFont(); + quitKeyTable(); + quitLanguage(); quitScreen(); quitArenaFile(); quitItem(); @@ -165,36 +171,12 @@ int main(int argc, char *argv[]) my_argc = argc; my_argv = argv; -#ifndef PUBLIC_SERVER - init(); setScreen("mainMenu"); eventSDL(); quit(); -#endif - -#ifdef PUBLIC_SERVER - - signal(SIGPIPE, SIG_IGN); - signal(SIGINT, my_handler_quit); - signal(SIGTERM, my_handler_quit); - signal(SIGQUIT, my_handler_quit); - - if( initPublicServer() < 0 ) - { - quitPublicServer(); - return -1; - } - - while(1) - { - eventPublicServer(); - } - -#endif return 0; } - -- cgit v1.2.3