mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 00:02:23 +02:00
Merge branch 'dev' into feat/switch-nx
Bring feat/switch-nx up to date with origin/dev (72 commits). Resolve Input/RomImporter conflicts by keeping GamepadMap (NX face remap + dual-path gate) while adopting upstream joyBindings rebinds (#632) and Enable-all mods (#647). Gate shoulder GAME SPEED hotkeys when Select is held so Select+L display chords still work. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -265,6 +265,21 @@ function LauncherMods.setEnabled(id, enabled)
|
||||
return true
|
||||
end
|
||||
|
||||
-- setAllEnabled(ids, enabled): the launcher's Enable all / Disable all buttons
|
||||
-- (#647). Writes exactly the options.mods shape setEnabled does, but loads and
|
||||
-- saves once for the whole list: saveOptions rewrites the whole options file per
|
||||
-- call, so looping setEnabled over a big mods folder is one disk write per mod
|
||||
-- and leaves a half-applied state behind if one of them fails.
|
||||
function LauncherMods.setAllEnabled(ids, enabled)
|
||||
local options = SaveData.loadOptions()
|
||||
options.mods = options.mods or {}
|
||||
for _, id in ipairs(ids or {}) do
|
||||
options.mods[id] = enabled and true or false
|
||||
end
|
||||
SaveData.saveOptions(options)
|
||||
return true
|
||||
end
|
||||
|
||||
-- ------- install (love.filesystem)
|
||||
|
||||
-- Read a .zip source into bytes. Save-dir-relative paths (inbox /
|
||||
|
||||
Reference in New Issue
Block a user