--- deliantra/server/utils/cfutil.in 2007/08/27 02:43:38 1.60 +++ deliantra/server/utils/cfutil.in 2007/08/30 07:13:17 1.61 @@ -496,9 +496,17 @@ my $data; aio_load "$dir/$file", $data; + my $meta = load_cached "$dir/meta", sub { JSON::XS->new->utf8->relaxed->decode (shift) }; - next if $meta && !exists $meta->{$file}; + utf8::decode $dir; + utf8::decode $file; + + # a meta file for resources is now mandatory + unless (exists $meta->{$file}) { + warn "skipping $dir/$file\n" if $VERBOSE >= 3; + next; + } $meta = { %{ $meta->{"" } || {} },