From 4cc6df2fbacca2125236e94b38f5783b108e20f6 Mon Sep 17 00:00:00 2001 From: Alex <25656892+Unknow0059@users.noreply.github.com> Date: Sat, 29 Aug 2026 16:57:17 -0300 Subject: [PATCH] Update steam-enhancement-pack.nsi Allowed individual selection of graphic mods --- .../steam-enhancement-pack.nsi | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/games/resident-evil-3-nemesis/steam-enhancement-pack.nsi b/games/resident-evil-3-nemesis/steam-enhancement-pack.nsi index f47c938..3b0eeb9 100644 --- a/games/resident-evil-3-nemesis/steam-enhancement-pack.nsi +++ b/games/resident-evil-3-nemesis/steam-enhancement-pack.nsi @@ -381,18 +381,22 @@ SectionGroupEnd !endif Function .onSelChange - # Some graphics options are grouped together - ${If} ${SectionIsSelected} ${gfx1} - ${OrIf} ${SectionIsSelected} ${gfx2} - ${OrIf} ${SectionIsSelected} ${gfx3} - !insertmacro SelectSection ${gfx1} + # Graphics options are a dependency chain: gfx1 <- gfx2 <- gfx3 + # Selecting a later layer force-selects its prerequisite(s). + ${If} ${SectionIsSelected} ${gfx3} !insertmacro SelectSection ${gfx2} - !insertmacro SelectSection ${gfx3} - ${Else} - !insertmacro UnselectSection ${gfx1} + ${EndIf} + ${If} ${SectionIsSelected} ${gfx2} + !insertmacro SelectSection ${gfx1} + ${EndIf} + # Deselecting an earlier layer force-deselects everything built on top of it. + ${IfNot} ${SectionIsSelected} ${gfx1} !insertmacro UnselectSection ${gfx2} !insertmacro UnselectSection ${gfx3} ${EndIf} + ${IfNot} ${SectionIsSelected} ${gfx2} + !insertmacro UnselectSection ${gfx3} + ${EndIf} # FMV options are strict radio buttons (1 mandatory choice) ${If} ${SectionIsSelected} ${fmv}