ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/util/run
Revision: 1.1
Committed: Thu Dec 29 06:03:08 2011 UTC (12 years, 4 months ago) by root
Branch: MAIN
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     @INC = (
8     "pm",
9     ".", # AutoLoader requires this in newer versions. yup. yup. yup :(
10     sub {
11     return if $_[1] eq "Log/Agent.pm"; # Storable has this idiotic optional dependency
12     warn "$_[1]: file not found, packaging error?\n";
13     ()
14     },
15     );
16    
17     #############################################################################
18     # splash-screen
19    
20     our @STARTUP_DONE;
21    
22     if ($^O eq "MSWin32") {
23     require Win32::GUI::SplashScreen;
24    
25     Win32::GUI::SplashScreen::Show (
26     -file => "SPLASH.bmp",
27     );
28    
29     push @STARTUP_DONE, sub {
30     Win32::GUI::SplashScreen::Done (1);
31     };
32     }
33    
34     $ENV{PANGO_RC_FILE} = "pango.rc";
35    
36     require "bin/deliantra";