--exechack.cc/lua if not MENU_DLL then return end; local a; local function b() local function c(d) local function e(f) f = f.."/" local g, h = file.Find(d.."/"..f.."*", "MOD") for i = 1, #g do exec_Delete(a..d.."/"..f..g[i]) end; for i = 1, #h do e(d.."/"..f..h[i]) end end; local g, h = file.Find(d.."/*", "MOD") for i = 1, #g do exec_Delete(a..d.."/"..g[i]) end; for i = 1, #h do e(h[i]) end; exec_notification("Cleared "..d.." folder") end; if exec_cfg_GetValue("CLEAR_CACHE") == nil then exec_cfg_SetValue("CLEAR_CACHE", false) end; if exec_cfg_GetValue("CLEAR_DATA") == nil then exec_cfg_SetValue("CLEAR_CACHE", false) end; if exec_cfg_GetValue("CLEAR_DL") == nil then exec_cfg_SetValue("CLEAR_CACHE", false) end; if exec_cfg_GetValue("CLEAR_CACHE") then c("cache") end; if exec_cfg_GetValue("CLEAR_DATA") then c("data") end; if exec_cfg_GetValue("CLEAR_DL") then c("download") end; exec_menuaddtab("Cleaner", function() exec_menuaddlabel("by farshmak", 15, 3, 15, 300, 50) exec_menuaddlabel("Clear cache folder", 15, 40, 17, 300, 50) exec_menuaddbutton("Clear", 15, 80, function() c("cache") end) exec_menuaddcheckbox("Clear on script execution", 15, 120, "CLEAR_CACHE", "Tip: Put this script in autorun") exec_menuaddlabel("Clear data folder", 15, 145, 17, 300, 50) exec_menuaddbutton("Clear", 15, 185, function() c("data") end) exec_menuaddcheckbox("Clear on script execution", 15, 225, "CLEAR_DATA", "Tip: Put this script in autorun") exec_menuaddlabel("Clear downloads folder", 15, 250, 17, 300, 50) exec_menuaddbutton("Clear", 15, 290, function() c("download") end) exec_menuaddcheckbox("Clear on script execution", 15, 330, "CLEAR_DL", "Tip: Put this script in autorun") end) end; steamworks.DownloadUGC(414560969, function(f, file) a = string.gsub(string.gsub(util.RelativePathToFull_Menu(f), [[cache\workshop\414560969.gma]], ""), [[\]], "/") b() end)