uranium-core/stdlib/noautoplay.lua

14 lines
308 B
Lua

local oldAutoplay
return function()
function uranium.ready()
oldAutoplay = PREFSMAN:GetPreference('AutoPlay')
PREFSMAN:SetPreference('AutoPlay', 0)
end
function uranium.exit()
if oldAutoplay and oldAutoplay ~= 0 then
PREFSMAN:SetPreference('AutoPlay', oldAutoplay)
end
end
end