1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 12:32:36 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
641 B
Lua
Raw Normal View History

local storage = require('openmw.storage')
2022-03-07 21:28:05 +01:00
local common = require('scripts.omw.settings.common')
2024-02-27 08:04:45 +04:00
common.getSection(true, common.groupSectionKey):setLifeTime(storage.LIFE_TIME.Temporary)
2022-03-07 21:28:05 +01:00
return {
interfaceName = 'Settings',
interface = {
version = 1,
registerGroup = common.registerGroup,
2022-05-19 19:49:14 +00:00
updateRendererArgument = common.updateRendererArgument,
2022-03-07 21:28:05 +01:00
},
engineHandlers = {
onLoad = common.onLoad,
onSave = common.onSave,
2022-03-07 21:28:05 +01:00
},
eventHandlers = {
[common.setGlobalEvent] = function(e)
storage.globalSection(e.groupKey):set(e.settingKey, e.value)
end,
},
}