ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/bin/gce
(Generate patch)

Comparing deliantra/gde/bin/gce (file contents):
Revision 1.28 by elmex, Tue Aug 15 17:29:35 2006 UTC vs.
Revision 1.29 by root, Sun Oct 8 21:29:03 2006 UTC

1#!/opt/bin/perl 1#!/opt/bin/perl
2 2
3our $VERSION = '1.2'; 3our $VERSION = '1.2';
4
5my $startup_done = sub { };
6
7# do splash-screen thingy on win32
8BEGIN {
9 if ($^O eq "MSWin32") {
10 while (my ($filename, $zip) = each %PAR::LibCache) {
11 $zip->extractMember ("SPLASH.bmp", "$ENV{PAR_TEMP}/SPLASH.bmp");
12 }
13
14 require Win32::GUI::SplashScreen;
15
16 Win32::GUI::SplashScreen::Show (
17 -file => "$ENV{PAR_TEMP}/SPLASH.bmp",
18 );
19
20 $startup_done = sub {
21 Win32::GUI::SplashScreen::Done (1);
22 };
23 }
24}
4 25
5BEGIN { 26BEGIN {
6 if (%PAR::LibCache) { 27 if (%PAR::LibCache) {
7 @INC = grep ref, @INC; # weed out all paths except pars loader refs 28 @INC = grep ref, @INC; # weed out all paths except pars loader refs
8 29
113my $w = GCE::MainWindow->new; 134my $w = GCE::MainWindow->new;
114 135
115$w->load_layout; 136$w->load_layout;
116 137
117$w->show_all; 138$w->show_all;
139
140$startup_done->();
118 141
119Gtk2->main; 142Gtk2->main;
120 143
121__DATA__ 144__DATA__
122 145

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines