summaryrefslogtreecommitdiff
path: root/u_skins/meta.lua
blob: 350dbe81a55a45242fd759d40f3c865d3813470c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
u_skins.meta = {}
for _, i in ipairs(u_skins.list) do
	u_skins.meta[i] = {}
	local f = io.open(u_skins.modpath.."/meta/"..i..".txt")
	local data = nil
	if f then
		data = minetest.deserialize("return {"..f:read('*all').."}")
		f:close()
	end
	data = data or {}
	u_skins.meta[i].name = data.name or ""
	u_skins.meta[i].author = data.author or ""
	u_skins.meta[i].description = data.description or nil
	u_skins.meta[i].comment = data.comment or nil
end