From f4d5b0665c0cb26cd45fce4a19c13cdebd5ed40c Mon Sep 17 00:00:00 2001 From: insweater Date: Thu, 5 Feb 2015 18:39:52 +0300 Subject: [PATCH] Add removeData --- gamejolt.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gamejolt.lua b/gamejolt.lua index 45057fd..0e5c03a 100644 --- a/gamejolt.lua +++ b/gamejolt.lua @@ -114,4 +114,11 @@ function GJ.updateData(key, value, operation, isGlobal) return string.sub(d, string.find(d, "\n"), string.len(d)) end +function GJ.removeData(key, isGlobal) + local pu, pt = true, true + if isGlobal then pu, pt = false, false end + + return string.find(req("data-store/remove/?key=" .. key, "dump", pu, pt), "SUCCESS") ~= nil +end + return GJ \ No newline at end of file