mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 00:02:23 +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:
@@ -23,10 +23,15 @@ end
|
||||
|
||||
local function redactString(s)
|
||||
if type(s) ~= "string" then return s end
|
||||
-- Keep printable ASCII + TAB/LF/CR so Lua stack traces remain readable.
|
||||
-- Reject NULs and other C0 controls, and high bytes (ROM/binary dumps).
|
||||
for i = 1, #s do
|
||||
local b = s:byte(i)
|
||||
if b < 32 or b > 126 then return "<redacted>" end
|
||||
if b == 0 then return "<redacted>" end
|
||||
if b < 32 and b ~= 9 and b ~= 10 and b ~= 13 then return "<redacted>" end
|
||||
if b > 126 then return "<redacted>" end
|
||||
end
|
||||
if #s > 8192 then return s:sub(1, 8192) .. "...<truncated>" end
|
||||
return s
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user