--- deliantra/Deliantra-Client/DC.pm 2009/01/11 22:11:23 1.202 +++ deliantra/Deliantra-Client/DC.pm 2009/12/22 00:41:47 1.209 @@ -19,7 +19,7 @@ our $VERSION; BEGIN { - $VERSION = '2.02'; + $VERSION = '2.09'; use XSLoader; XSLoader::load "Deliantra::Client", $VERSION; @@ -143,7 +143,7 @@ for (@RC_PATH, "") { $path = "$RC_BASE/$_/$_[0]"; - return $path if -r $path; + return $path if -e $path; } die "FATAL: can't find required file \"$_[0]\" in \"$RC_BASE\"\n"; @@ -156,7 +156,7 @@ or return; local $/; - JSON::XS->new->utf8->relaxed->decode (<$fh>) + eval { JSON::XS->new->utf8->relaxed->decode (<$fh>) } } sub set_theme($) {