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

Only allow menu scripts to register permanent groups

This commit is contained in:
uramer 2024-01-10 23:05:13 +01:00
parent 1092d2058d
commit 8cc47f5363

View File

@ -493,6 +493,9 @@ return {
end,
registerRenderer = registerRenderer,
registerGroup = function(options)
if not options.permanentStorage then
error('Menu scripts are only allowed to register setting groups with permanentStorage = true')
end
common.registerGroup(options)
menuGroups[options.key] = true
end,