Wehack.checkmenuentry(RenderEdgeMenu, RenderEdgeAllowLocalFiles, 0) Wehack.checkmenuentry(RenderEdgeMenu, RenderEdgeAllowLocalFiles, 1) If grim.getregpair('HKEY_CURRENT_USER\\Software\\RenderEdge', 'AllowLocalFiles') = 1 then RenderEdgeAllowLocalFiles = TogMenuEntry:New(RenderEdgeMenu, 'Allow Local Files',įunction(self) toggleRenderEdgeAllowLocalFiles(self.checked) end, false) Wehack.checkmenuentry(RenderEdgeMenu, RenderEdgeDebug, 0) Wehack.checkmenuentry(RenderEdgeMenu, RenderEdgeDebug, 1) If grim.getregpair('HKEY_CURRENT_USER\\Software\\RenderEdge', 'Debug') = 1 then
RenderEdgeDebug = TogMenuEntry:New(RenderEdgeMenu, 'Debug Mode',įunction(self) toggleRenderEdgeDebug(self.checked) end, false) RenderEdgeEnabled = TogMenuEntry:New(RenderEdgeMenu, 'Run with RenderEdge', nil, true) RenderEdgeMenu = wehack.addmenu('RenderEdge') tregdword('HKEY_CURRENT_USER\\Software\\RenderEdge', 'AllowLocalFiles', 0) tregdword('HKEY_CURRENT_USER\\Software\\RenderEdge', 'AllowLocalFiles', 1) tregdword('HKEY_CURRENT_USER\\Software\\RenderEdge', 'Debug', 0)įunction toggleRenderEdgeAllowLocalFiles(checked) tregdword('HKEY_CURRENT_USER\\Software\\RenderEdge', 'Debug', 1) HaveRenderEdge = grim.exists(RenderEdgePath. RenderEdgePath = grim.getregpair('HKEY_CURRENT_USER\\Software\\RenderEdge', 'InstallPath')