mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-17 11:11:10 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user