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