Comparison

util/datamanager.lua @ 87:059ef1c30844

Merge from Matthew. datamanager.simplesave fix
author Waqas Hussain <waqas20@gmail.com>
date Thu, 09 Oct 2008 03:01:47 +0500
parent 84:d0a0bac6815e
parent 82:cbf387f29d56
child 88:023320150c65
comparison
equal deleted inserted replaced
86:a2085854c72c 87:059ef1c30844
41 elseif type(o) == "string" then 41 elseif type(o) == "string" then
42 f:write(format("%q", o)) 42 f:write(format("%q", o))
43 elseif type(o) == "table" then 43 elseif type(o) == "table" then
44 f:write("{\n") 44 f:write("{\n")
45 for k,v in pairs(o) do 45 for k,v in pairs(o) do
46 f:write(" [", format("%q", k), "] = ") 46 f:write(" [", basicSerialize(k), "] = ")
47 simplesave(f, v) 47 simplesave(f, v)
48 f:write(",\n") 48 f:write(",\n")
49 end 49 end
50 f:write("}\n") 50 f:write("}\n")
51 else 51 else