Available since Version 1.27.
Gets a table of mods that have custom save data in the current save file.
Syntax
GetModsWithCustomSaveData()Arguments
No arguments.
Return Values
- (string[]): A table of mod names.
Examples
local ModNames = GetModsWithCustomSaveData()
for i = 1, #ModNames do
local ModName = ModNames[i]
-- Do something with the mod name!
endNotes
This function will throw an error if it is called before the game's save manager is available (such as in CustomFiles.lua).