feat(nx-mods): route chooseMod to inbox rescan on NX

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Andrew Quenehen
2026-08-01 05:22:08 -03:00
parent 43755c5457
commit e92bab6f4f
2 changed files with 28 additions and 0 deletions
+6
View File
@@ -1202,8 +1202,14 @@ end
-- Android mirrors ROM import: scan for a pending .zip in the save dir (USB
-- or a fresh SAF drop), else love.system.pickFile("mod") -> picked_mod.zip
-- which focus/Choose consumes on return.
-- NX: no HostShell/desktop picker — rescan imports/mods/ inbox instead.
function RomImporter:chooseMod()
if self.workState == "working" then return end
if self.isNX then
self:ensureModsInboxDir()
self:rescanModsAction()
return
end
if self.android then
local name = findPendingMod(true, self.pickSkip)
if name then