--- deliantra/Deliantra-Client/bin/deliantra 2010/02/04 20:01:09 1.101 +++ deliantra/Deliantra-Client/bin/deliantra 2010/03/20 00:50:06 1.102 @@ -2778,7 +2778,7 @@ map_shift_x => -24, # arbitrary map_shift_y => +24, # arbitrary ); - + while (my ($k, $v) = each %DEF_CFG) { $CFG->{$k} = $v unless exists $CFG->{$k}; } @@ -2786,6 +2786,10 @@ $CFG->{profile}{default}{host} ||= "gameserver.deliantra.net"; $PROFILE = $CFG->{profile}{default}; + $PROFILE->{host} = $ARGV[0] if @ARGV > 0; + $PROFILE->{user} = $ARGV[1] if @ARGV > 1; + $PROFILE->{password} = $ARGV[2] if @ARGV > 2; + # convert old bindings (only default profile matters) if (my $bindings = delete $PROFILE->{bindings}) { while (my ($mod, $syms) = each %$bindings) { @@ -2817,7 +2821,7 @@ ); DC::add_font $_ for @fonts; - + $FONT_PROP = new_from_file DC::Font $fonts[0]; $FONT_FIXED = new_from_file DC::Font $fonts[1];