summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-04-04 18:46:15 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-04-04 18:46:15 +0000
commit6dbcded21e7e9614b967b922987be6bcf3f3fe58 (patch)
treecfa806296d8880c4136681c5cb96d06a2e856eb0 /src/main.c
parent617ba439aab5f1798eb02618dfcfbed80a5baf28 (diff)
- 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
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c30
1 files changed, 6 insertions, 24 deletions
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;
}
-