1 |
#! perl |
2 |
|
3 |
# wrapper to run the urlader-packaged client |
4 |
|
5 |
our $URLADER = 1; |
6 |
|
7 |
our %NO_WARN = map +($_, undef), |
8 |
"Log/Agent.pm", # Storable has this idiotic optional dependency |
9 |
"Win32/GUI/DIBitmap.pm", # JPEG support for Win32::SplashScreen |
10 |
"ActivePerl/Config.pm", # Config tries to use this |
11 |
"AnyEvent/Strict.pm", # used for debugging |
12 |
"Net/DNS/SEC.pm", # Net:DNS optional |
13 |
"Net/DNS/RR/SIG.pm", # Net:DNS optional |
14 |
"IO/Socket/INET6.pm", # Net:DNS optional |
15 |
; |
16 |
|
17 |
@INC = ( |
18 |
"pm", |
19 |
".", # AutoLoader requires this in newer versions. yup. yup. yup :( |
20 |
sub { |
21 |
return if exists $NO_WARN{$_[1]}; |
22 |
warn "$_[1]: file not found, packaging error?\n"; |
23 |
() |
24 |
}, |
25 |
); |
26 |
|
27 |
############################################################################# |
28 |
# splash-screen |
29 |
|
30 |
our @STARTUP_DONE; |
31 |
|
32 |
if ($^O eq "MSWin32") { |
33 |
require Win32::GUI::SplashScreen; |
34 |
|
35 |
Win32::GUI::SplashScreen::Show ( |
36 |
-file => "SPLASH.bmp", |
37 |
); |
38 |
|
39 |
push @STARTUP_DONE, sub { |
40 |
Win32::GUI::SplashScreen::Done (1); |
41 |
}; |
42 |
} |
43 |
|
44 |
delete $ENV{PERL_ANYEVENT_STRICT} ; delete $ENV{AE_STRICT}; |
45 |
delete $ENV{PERL_ANYEVENT_DEBUG_WRAP}; delete $ENV{AE_DEBUG_WRAP}; |
46 |
|
47 |
$ENV{TIMIDITY_CFG} = "timidity.cfg"; |
48 |
$ENV{PANGO_RC_FILE} = "pango.rc"; |
49 |
|
50 |
require "bin/deliantra"; |