mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 12:55:57 +00:00
The Shapes step keeps its old key when it writes no capped HUD folder, so an install with hud_width full does not prepare its shaped folders again (#643)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
006c186928
commit
c781238d6d
2 files changed
+22
-2
No files matched your search
+6
-2
@@ -1444,8 +1444,12 @@ class Shapes(Step):
|
||||
sizes, style = self.wanted(ctx)
|
||||
# The pc prompts' shaped folders are drawn from the same bindings as romfs-patches-pc, so they follow its key
|
||||
prompts = ctx.keys.get('pc_prompts', '') if style == 'pc' else ''
|
||||
return fingerprint('shapes-3', ctx.keys.get('prepare', ''), prompts, style or 'nintendo',
|
||||
hud_width(ctx.dest), *sizes)
|
||||
# Without a capped folder to write (hud_width full, or no shape wider than the cap) the key stays the one a
|
||||
# setup before hud_width wrote, so an existing install does not prepare its shaped folders again
|
||||
hud = hud_width(ctx.dest)
|
||||
if not any(shape_hud(size, hud) for size in sizes):
|
||||
return fingerprint('shapes-2', ctx.keys.get('prepare', ''), prompts, style or 'nintendo', *sizes)
|
||||
return fingerprint('shapes-3', ctx.keys.get('prepare', ''), prompts, style or 'nintendo', hud, *sizes)
|
||||
|
||||
def current(self, ctx, record):
|
||||
return not record.get('failed') and all((ctx.dest / name / 'manifest.tsv').is_file()
|
||||
|
||||
Reference in new issue
Block a user