1
0
Fork 0

simplification

This commit is contained in:
mfranz 2007-06-12 22:08:18 +00:00
parent 3c73eaa45f
commit d9910b27e7

View file

@ -539,10 +539,11 @@ var livery = {
},
rescan : func {
me.data = [];
foreach (var file; directory(getprop("/sim/fg-root") ~ "/" ~ me.dir)) {
var path = getprop("/sim/fg-root") ~ "/" ~ me.dir;
foreach (var file; directory(path)) {
if (substr(file, -4) != ".xml")
continue;
var n = props.Node.new({ filename : getprop("/sim/fg-root") ~ "/" ~ me.dir ~ file });
var n = props.Node.new({ filename : path ~ file });
fgcommand("loadxml", n);
n = n.getNode("data");