feat: add playthrough-scoped mod storage

This commit is contained in:
MaxTomahawk
2026-08-07 14:43:04 +02:00
parent 726ed1102e
commit 0399ad040f
4 changed files with 404 additions and 0 deletions
+7
View File
@@ -216,6 +216,13 @@ local function persistFs(fs)
return SaveData.portableFs() or fs or (love and love.filesystem)
end
-- Engine-owned persistence routing for subsystems that must follow the same
-- standard/portable root as saves without exposing raw filesystem access to a
-- mod. An explicitly injected headless filesystem still wins for tests.
function SaveData.persistenceFs(fs)
return persistFs(fs)
end
-- Port + original Options menu defaults. Missing keys on load are filled
-- from this table so old options.lua files stay compatible.
function SaveData.defaultOptions()