Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions games/resident-evil-3-nemesis/steam-enhancement-pack.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down