fix(switch): unhide fused save-dir generated cache on Play

PhysFS does not merge archive data/ with save-dir data/generated, so
fused NX Play crashed after import. Prepend-mount generated trees,
fall back to CacheFs.read in Data:load, keep multiline lua-error logs,
and skip Boot.run when network is unvalidated. T24 stays open.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Andrew Quenehen
2026-08-01 04:55:08 -03:00
parent 6fb5602cb0
commit b1ad7c7254
6 changed files with 101 additions and 5 deletions
+9
View File
@@ -61,4 +61,13 @@ check(errLog:find("probe failure", 1, true) ~= nil, "lua-error.log records messa
check(errLog:find("<redacted>", 1, true) ~= nil, "lua-error.log strips ROM bytes")
check(not errLog:find(romErr, 1, true), "lua-error.log omits raw ROM bytes")
-- Stack-trace style messages (newlines) must remain readable — not wholesale
-- "<redacted>" (fused Play triage regression).
SwitchDiagnostics.logLuaError("missing module 'data/generated/maps.lua'.\nImport again.\n(detail)")
errLog = love.filesystem.read("lua-error.log") or ""
check(errLog:find("missing module", 1, true) ~= nil,
"lua-error.log keeps printable multiline error text")
check(errLog:find("Import again", 1, true) ~= nil,
"lua-error.log preserves lines after newline")
T.finish()