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.3 by root, Thu Feb 23 03:14:22 2006 UTC vs.
Revision 1.4 by root, Thu Feb 23 14:54:39 2006 UTC

3 3
4 gce - gtk (perl) crossfire editor 4 gce - gtk (perl) crossfire editor
5 5
6=cut 6=cut
7 7
8our $VERSION='0.1'; 8our $VERSION = '0.1';
9
10BEGIN {
11 if ($^O eq "MSWin32") {
12 require PAR;
13
14 while (my ($filename, $zip) = each %PAR::LibCache) {
15 for ($zip->memberNames) {
16 next unless /^\/root\/(.*)/;
17 warn "extract $_ => $ENV{PAR_TEMP}/$1\n";#d#
18 $zip->extractMember ($_, "$ENV{PAR_TEMP}/$1")
19 unless -e "$ENV{PAR_TEMP}/$1";
20 }
21 }
22
23 $ENV{CROSSFIRE_LIBDIR} ||= $ENV{PAR_TEMP};
24 }
25}
9 26
10use Gtk2 -init; 27use Gtk2 -init;
11 28
12use Crossfire; 29use Crossfire;
13use Crossfire::Tilecache; 30use Crossfire::Tilecache;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines