diff options
author | dmonty2 <dmonty@sd73.bc.ca> | 2014-03-16 22:26:58 -0700 |
---|---|---|
committer | dmonty2 <dmonty@sd73.bc.ca> | 2014-03-16 22:26:58 -0700 |
commit | 62be356cab50205780bbe20f003be47f51976585 (patch) | |
tree | afa1d183b776c49f5f5c475a9f66911d2690bedd /u_skins/meta.lua | |
parent | 5e5810800664a1e5698b6f6dd0de7b033c09014e (diff) |
first commit
Diffstat (limited to 'u_skins/meta.lua')
-rw-r--r-- | u_skins/meta.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/u_skins/meta.lua b/u_skins/meta.lua new file mode 100644 index 0000000..350dbe8 --- /dev/null +++ b/u_skins/meta.lua @@ -0,0 +1,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 |