diff options
author | 2017-06-02 17:59:55 -0500 | |
---|---|---|
committer | 2017-06-02 18:03:25 -0500 | |
commit | 33c65a2afccb8031e5c929498cdbdb6c83bb645e (patch) | |
tree | e91bc89b1ffdaac44a8f4bbb2fb135e1221db597 /plugins/cheat/cheat_json.lua | |
parent | e6ee45d670bc54cf033a2d71454095b0392bbf3b (diff) |
plugins/cheat: add hotkey support [Carl]
Diffstat (limited to 'plugins/cheat/cheat_json.lua')
-rw-r--r-- | plugins/cheat/cheat_json.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/cheat/cheat_json.lua b/plugins/cheat/cheat_json.lua new file mode 100644 index 00000000000..fd2778be63d --- /dev/null +++ b/plugins/cheat/cheat_json.lua @@ -0,0 +1,12 @@ +local jsoncheat = {} + +function jsoncheat.filename(name) + return name .. ".json" +end + +function jsoncheat.conv_cheat(data) + local json = require("json") + return json.parse(data) +end + +return jsoncheat |