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
|
if not f then return false end
|
||||||
local C=fs.readall(f)
|
local C=fs.readall(f)
|
||||||
fs.close(f)
|
fs.close(f)
|
||||||
log(C)
|
|
||||||
for line in C:gmatch("[^\n]+") do
|
for line in C:gmatch("[^\n]+") do
|
||||||
local ifn = true
|
local ifn = true
|
||||||
local fn = ""
|
local fn = ""
|
||||||
for kv in line:gmatch("[^\t]+") do
|
for kv in line:gmatch("[^\t]+") do
|
||||||
if ifn then
|
if ifn then
|
||||||
fn = kv
|
fn = kv
|
||||||
log(fn)
|
|
||||||
ifn = false
|
ifn = false
|
||||||
else
|
else
|
||||||
log("attr: "..kv)
|
|
||||||
local k,v = kv:match("(.+)%=(.+)")
|
local k,v = kv:match("(.+)%=(.+)")
|
||||||
log(tostring(k),tostring(v))
|
|
||||||
setattr(fn,k,v)
|
setattr(fn,k,v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user