void init () { g_type_init (); scm_c_eval_string ("(use-modules (gnome-2) (gnome gobject))"); repository_init (); types_init (); registered_type_init (); object_init (); function_init (); callable_init (); argument_init (); }
int main( int argc, char **argv) { init_nls(); printf( "%s v%s server - by Ricardo Quesada\n\n", TEG_NAME, VERSION); dont_run_as_root(); server_init(); /* default values for server */ game_init(); /* default values for the game */ argument_init(argc, argv); /* parse command line */ printf( _("Bound to port: %d\n"),g_server.port ); printf( _("Using seed: %u\n\n"),g_game.seed ); if( g_server.with_console ) { if( ! g_server.metaserver_on ) printf( _("Type '%s %s' to publish this server in the metaserver\n"),TOKEN_METASERVER, OPTION_META_ON); printf( _("Type '%s' for more help\n"),TOKEN_HELP); console_init(); /* initialize console */ } else { if( !g_server.with_ggz ) printf(_("Standalone server.\n")); else printf(_("GGZ mode activated.\n")); } srand( g_game.seed ); #ifdef WITH_GGZ if( g_server.with_ggz ) return ggz_server_main_loop(); else #endif /* WITH_GGZ */ metaserver_publish(); main_loop(); if( g_server.with_console ) console_quit(); return 1; }