2022-08-02 11:58:08 +02:00
|
|
|
function core.setting_get_pos(name)
|
|
|
|
local value = core.settings:get(name)
|
|
|
|
if not value then
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
return core.string_to_pos(value)
|
|
|
|
end
|
2023-06-16 20:15:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
-- old non-method sound functions
|
|
|
|
|
|
|
|
function core.sound_stop(handle, ...)
|
|
|
|
return handle:stop(...)
|
|
|
|
end
|
|
|
|
|
|
|
|
function core.sound_fade(handle, ...)
|
|
|
|
return handle:fade(...)
|
|
|
|
end
|