|
|
@ -1,5 +1,5 @@ |
|
|
|
local dkjson = require("dkjson") |
|
|
|
local handler = io.open(global.widget_config_dir.."stickers.json","r") |
|
|
|
local handler = io.open(global.config_dir.."stickers.json","r") |
|
|
|
local stickers = {} |
|
|
|
local objects = {} |
|
|
|
if handler then |
|
|
@ -47,7 +47,7 @@ return function(s) |
|
|
|
stickers[type][id].height = obj.height |
|
|
|
end |
|
|
|
end |
|
|
|
local handler = io.open(global.widget_config_dir.."stickers.json","w") |
|
|
|
local handler = io.open(global.config_dir.."stickers.json","w") |
|
|
|
handler:write(dkjson.encode(stickers) or "") |
|
|
|
handler:close() |
|
|
|
end) |
|
|
|