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

Comparing deliantra/gde/bin/gde (file contents):
Revision 1.2 by elmex, Mon Oct 15 13:20:26 2007 UTC vs.
Revision 1.3 by root, Thu Dec 27 22:28:01 2007 UTC

47use Gtk2 -init; 47use Gtk2 -init;
48 48
49use Data::Dumper; 49use Data::Dumper;
50use File::Spec; 50use File::Spec;
51 51
52use Crossfire; 52use Deliantra;
53 53
54use GCE::MainWindow; 54use GCE::MainWindow;
55 55
56our $CFG; 56our $CFG;
57our $MAPDIR; 57our $MAPDIR;
120 # FIXME: This sucks, moving it after showing it can't be a good thing. 120 # FIXME: This sucks, moving it after showing it can't be a good thing.
121 $window->show_all; 121 $window->show_all;
122 $window->move ($p_and_s->[0] || $default_x, $p_and_s->[1] || $default_y); 122 $window->move ($p_and_s->[0] || $default_x, $p_and_s->[1] || $default_y);
123} 123}
124 124
125if (-e "$Crossfire::VARDIR/gdeconfig") { 125if (-e "$Deliantra::VARDIR/gdeconfig") {
126 read_cfg "$Crossfire::VARDIR/gdeconfig"; 126 read_cfg "$Deliantra::VARDIR/gdeconfig";
127} else { 127} else {
128 read_cfg "$Crossfire::VARDIR/gceconfig"; 128 read_cfg "$Deliantra::VARDIR/gceconfig";
129} 129}
130 130
131$LIBDIR = $ENV{CROSSFIRE_LIBDIR}; 131$LIBDIR = $ENV{CROSSFIRE_LIBDIR};
132$LIBDIR ||= $CFG->{LIBDIR}; 132$LIBDIR ||= $CFG->{LIBDIR};
133 133
134$MAPDIR = $ENV{CROSSFIRE_MAPDIR}; 134$MAPDIR = $ENV{CROSSFIRE_MAPDIR};
135$MAPDIR ||= $CFG->{MAPDIR}; 135$MAPDIR ||= $CFG->{MAPDIR};
136$MAPDIR ||= File::Spec->catfile ($ENV{CROSSFIRE_LIBDIR}, 'maps'); 136$MAPDIR ||= File::Spec->catfile ($ENV{CROSSFIRE_LIBDIR}, 'maps');
137 137
138# must be done after changing the libdir path: 138# must be done after changing the libdir path:
139Crossfire::set_libdir ($LIBDIR); 139Deliantra::set_libdir ($LIBDIR);
140Crossfire::load_archetypes; 140Deliantra::load_archetypes;
141Crossfire::load_tilecache; 141Deliantra::load_tilecache;
142 142
143my $w = GCE::MainWindow->new; 143my $w = GCE::MainWindow->new;
144 144
145$w->load_layout; 145$w->load_layout;
146 146

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines