made fs attribute loading spam the log less.
This commit is contained in:
parent
10f7a53cdd
commit
8458bf5fc7
@ -146,19 +146,15 @@ do
|
||||
if not f then return false end
|
||||
local C=fs.readall(f)
|
||||
fs.close(f)
|
||||
log(C)
|
||||
for line in C:gmatch("[^\n]+") do
|
||||
local ifn = true
|
||||
local fn = ""
|
||||
for kv in line:gmatch("[^\t]+") do
|
||||
if ifn then
|
||||
fn = kv
|
||||
log(fn)
|
||||
ifn = false
|
||||
else
|
||||
log("attr: "..kv)
|
||||
local k,v = kv:match("(.+)%=(.+)")
|
||||
log(tostring(k),tostring(v))
|
||||
setattr(fn,k,v)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user