ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/util/run
Revision: 1.2
Committed: Fri Dec 30 02:44:15 2011 UTC (12 years, 4 months ago) by root
Branch: MAIN
Changes since 1.1: +11 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #! perl
2    
3     # wrapper to run the urlader-packaged client
4    
5     our $URLADER = 1;
6    
7 root 1.2 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 root 1.1 @INC = (
18     "pm",
19     ".", # AutoLoader requires this in newer versions. yup. yup. yup :(
20     sub {
21 root 1.2 return if exists $NO_WARN{$_[1]};
22 root 1.1 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     $ENV{PANGO_RC_FILE} = "pango.rc";
45    
46     require "bin/deliantra";