1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 10:23:53 +00:00
openmw/files/data/scripts/omw/settings/global.lua

22 lines
615 B
Lua

local storage = require('openmw.storage')
local common = require('scripts.omw.settings.common')
common.getSection(true, common.groupSectionKey):removeOnExit()
return {
interfaceName = 'Settings',
interface = {
version = 1,
registerGroup = common.registerGroup,
updateRendererArgument = common.updateRendererArgument,
},
engineHandlers = {
onLoad = common.onLoad,
onSave = common.onSave,
},
eventHandlers = {
[common.setGlobalEvent] = function(e)
storage.globalSection(e.groupKey):set(e.settingKey, e.value)
end,
},
}