14 lines
322 B
Lua
14 lines
322 B
Lua
local oldAutoplay
|
|
|
|
return function()
|
|
uranium.on('ready', function()
|
|
oldAutoplay = PREFSMAN:GetPreference('AutoPlay')
|
|
PREFSMAN:SetPreference('AutoPlay', 0)
|
|
end)
|
|
|
|
uranium.on('exit', function()
|
|
if oldAutoplay and oldAutoplay ~= 0 then
|
|
PREFSMAN:SetPreference('AutoPlay', oldAutoplay)
|
|
end
|
|
end)
|
|
end |