2
0

misc.lua 322 B

123456789101112131415161718
  1. function core.setting_get_pos(name)
  2. local value = core.settings:get(name)
  3. if not value then
  4. return nil
  5. end
  6. return core.string_to_pos(value)
  7. end
  8. -- old non-method sound functions
  9. function core.sound_stop(handle, ...)
  10. return handle:stop(...)
  11. end
  12. function core.sound_fade(handle, ...)
  13. return handle:fade(...)
  14. end