Allow applying patches to rom from CLI

This commit is contained in:
2026-05-14 21:23:10 -05:00
parent ec89afaa5e
commit a946c2b3b0
7 changed files with 50 additions and 1 deletions

2
CLI.py
View File

@@ -179,7 +179,7 @@ def parse_cli(argv, no_defaults=False):
'decoupledoors', 'door_type_mode', 'bonk_drops',
'trap_door_mode', 'key_logic_algorithm',
'door_self_loops', 'any_enemy_logic', 'aga_randomness',
'money_balance']:
'money_balance', 'patches']:
value = getattr(defaults, name) if getattr(playerargs, name) is None else getattr(playerargs, name)
if player == 1:
setattr(ret, name, {1: value})