mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-19 12:15:31 +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:
@@ -250,6 +250,12 @@ function Boot.run(args)
|
||||
if not (love.filesystem.isFused and love.filesystem.isFused()) then
|
||||
return false
|
||||
end
|
||||
-- Switch (and any host without validated network): never probe payloads.
|
||||
local okp, Platform = pcall(require, "src.core.Platform")
|
||||
if okp and Platform and Platform.networkValidated
|
||||
and not Platform.networkValidated() then
|
||||
return false
|
||||
end
|
||||
-- The chainloaded love.load calls Boot.run again; the flag makes it a no-op.
|
||||
if _G.POKEPORT_PAYLOAD_MOUNTED then return false end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user