Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

or a less unixy form that might be easier on the implementor (not sure)

setSaveDataFilter(
{
    { "prog", "persistent", }, --everything in <global>.prog.persistent down recursively
    { "stats", { "lifetime", "thisRun" } }, --everything in <global>.stats.lifetime and <global>.stats.thisRun
    { "settings", "!someStupidHoldover" }, --everything in <global>.settings minus <global>.settings.someStupidHoldover
-- in short: filter is a list, strings are exact matches, nested lists are forks, ends of lists are wildcards, special syntax for negation

} )


this might be overengineered. a plain list of strings + a special default value for “include everything” is realistically enough