Fix crash when multiple mods with the same name provide settings

This commit is contained in:
rubenwardy 2023-05-01 19:26:20 +01:00
parent d35672e78e
commit ad37df7f2e

@ -377,7 +377,8 @@ function settingtypes.parse_config_file(read_all, parse_mods)
end
table.insert(settings, {
name = game.name,
name = game.path,
readable_name = game.title,
level = 1,
type = "category",
})
@ -409,7 +410,7 @@ function settingtypes.parse_config_file(read_all, parse_mods)
end
table.insert(settings, {
name = mod.name,
name = mod.path,
readable_name = mod.title,
level = 1,
type = "category",
@ -440,7 +441,8 @@ function settingtypes.parse_config_file(read_all, parse_mods)
end
table.insert(settings, {
name = mod.name,
name = mod.path,
readable_name = mod.title,
level = 1,
type = "category",
})