From 33c65a2afccb8031e5c929498cdbdb6c83bb645e Mon Sep 17 00:00:00 2001 From: cracyc Date: Fri, 2 Jun 2017 17:59:55 -0500 Subject: plugins/cheat: add hotkey support [Carl] --- plugins/cheat/cheat_json.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 plugins/cheat/cheat_json.lua (limited to 'plugins/cheat/cheat_json.lua') 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 -- cgit v1.2.3-70-g09d2