… | |
… | |
88 | use Deliantra::Protocol::Constants; |
88 | use Deliantra::Protocol::Constants; |
89 | |
89 | |
90 | use AnyEvent::Util (); |
90 | use AnyEvent::Util (); |
91 | use AnyEvent::DNS; |
91 | use AnyEvent::DNS; |
92 | use AnyEvent::Socket (); |
92 | use AnyEvent::Socket (); |
|
|
93 | use AnyEvent::DNS (); |
93 | |
94 | |
94 | use Compress::LZF; |
95 | use Compress::LZF; |
95 | use JSON::XS; |
96 | use JSON::XS; |
96 | |
97 | |
97 | use DC; |
98 | use DC; |
… | |
… | |
2599 | $SIG{INT} = $SIG{TERM} = sub { |
2600 | $SIG{INT} = $SIG{TERM} = sub { |
2600 | EV::unloop; |
2601 | EV::unloop; |
2601 | #d# TODO calling exit here hangs the process in some futex |
2602 | #d# TODO calling exit here hangs the process in some futex |
2602 | }; |
2603 | }; |
2603 | |
2604 | |
|
|
2605 | # initialise the resolver now, as vista forces us back to the desktop |
|
|
2606 | # when doing this. |
|
|
2607 | AnyEvent::DNS::resolver; |
|
|
2608 | |
2604 | # due to mac os x + sdl combined briandamage, we need this contortion |
2609 | # due to mac os x + sdl combined braindamage, we need this contortion |
2605 | sub main { |
2610 | sub main { |
2606 | { |
2611 | { |
2607 | DC::Pod::load_docwiki DC::find_rcfile "docwiki.pst"; |
2612 | DC::Pod::load_docwiki DC::find_rcfile "docwiki.pst"; |
2608 | |
2613 | |
2609 | if (-e "$Deliantra::VARDIR/client.cf") { |
2614 | if (-e "$Deliantra::VARDIR/client.cf") { |