1 | #! perl |
1 | #! perl |
2 | |
2 | |
3 | # wrapper to run the urlader-packaged client |
3 | # wrapper to run the urlader-packaged client |
4 | |
|
|
5 | our $URLADER = 1; |
|
|
6 | |
4 | |
7 | our %NO_WARN = map +($_, undef), |
5 | our %NO_WARN = map +($_, undef), |
8 | "Log/Agent.pm", # Storable has this idiotic optional dependency |
6 | "Log/Agent.pm", # Storable has this idiotic optional dependency |
9 | "Win32/GUI/DIBitmap.pm", # JPEG support for Win32::SplashScreen |
7 | "Win32/GUI/DIBitmap.pm", # JPEG support for Win32::SplashScreen |
10 | "ActivePerl/Config.pm", # Config tries to use this |
8 | "ActivePerl/Config.pm", # Config tries to use this |
… | |
… | |
17 | @INC = ( |
15 | @INC = ( |
18 | "pm", |
16 | "pm", |
19 | ".", # AutoLoader requires this in newer versions. yup. yup. yup :( |
17 | ".", # AutoLoader requires this in newer versions. yup. yup. yup :( |
20 | sub { |
18 | sub { |
21 | return if exists $NO_WARN{$_[1]}; |
19 | return if exists $NO_WARN{$_[1]}; |
|
|
20 | require Carp; |
22 | warn "$_[1]: file not found, packaging error?\n"; |
21 | Carp::cluck ("$_[1]: file not found, packaging error?\n"); |
|
|
22 | eval { |
|
|
23 | ::crash ("MISSING PACKAGE: $_[1]", 1); |
|
|
24 | }; |
23 | () |
25 | () |
24 | }, |
26 | }, |
25 | ); |
27 | ); |
26 | |
28 | |
27 | ############################################################################# |
29 | ############################################################################# |
… | |
… | |
39 | push @STARTUP_DONE, sub { |
41 | push @STARTUP_DONE, sub { |
40 | Win32::GUI::SplashScreen::Done (1); |
42 | Win32::GUI::SplashScreen::Done (1); |
41 | }; |
43 | }; |
42 | } |
44 | } |
43 | |
45 | |
|
|
46 | require Urlader; |
|
|
47 | |
|
|
48 | delete $ENV{PERL_ANYEVENT_STRICT} ; delete $ENV{AE_STRICT}; |
|
|
49 | delete $ENV{PERL_ANYEVENT_DEBUG_WRAP}; delete $ENV{AE_DEBUG_WRAP}; |
|
|
50 | |
|
|
51 | $ENV{TIMIDITY_CFG} = "timidity.cfg"; |
44 | $ENV{PANGO_RC_FILE} = "pango.rc"; |
52 | $ENV{PANGO_RC_FILE} = "pango.rc"; |
45 | |
53 | |
46 | require "bin/deliantra"; |
54 | require "bin/deliantra"; |
|
|
55 | |
|
|
56 | exit 0; |
|
|
57 | |