Skip to content

Commit

Permalink
Update installer Steam detection
Browse files Browse the repository at this point in the history
  • Loading branch information
SupSuper committed Aug 20, 2023
1 parent d2089e3 commit 88a3ac0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/win/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,12 @@ Function ScanSteam
Call ScanSteamLibrary

ClearErrors
FileOpen $0 "$R1\config\config.vdf" r
FileOpen $0 "$R1\config\libraryfolders.vdf" r
IfErrors steam_read_done
steam_read_loop:
FileRead $0 $1
IfErrors steam_read_done
${StrLoc} $2 $1 "BaseInstallFolder_" ">"
${StrLoc} $2 $1 "path" ">"
StrCmp $2 "" steam_read_next 0
${StrTok} $R1 $1 '"' "3" "1"
${StrRep} $R1 $R1 "\\" "\"
Expand Down Expand Up @@ -569,8 +569,8 @@ Function ValidateXcom
IfFileExists "$UFO_DIR\SOUND\*.*" 0 confirm_ufo
IfFileExists "$UFO_DIR\TERRAIN\*.*" 0 confirm_ufo
IfFileExists "$UFO_DIR\UFOGRAPH\*.*" 0 confirm_ufo
IfFileExists "$UFO_DIR\UFOINTRO\*.*" 0 confirm_ufo
IfFileExists "$UFO_DIR\UNITS\*.*" 0 confirm_ufo
IfFileExists "$UFO_DIR\GEOGRAPH\UP001.SPK" 0 confirm_ufo ; unique file
IfFileExists "$UFO_DIR\XcuSetup.bat" confirm_ufo_xcu
Goto validate_ufo_yes
confirm_ufo:
Expand All @@ -583,7 +583,6 @@ Function ValidateXcom

; TFTD
StrCmp $TFTD_DIR "" validate_tftd_yes
IfFileExists "$TFTD_DIR\FLOP_INT\*.*" 0 confirm_tftd
IfFileExists "$TFTD_DIR\GEODATA\*.*" 0 confirm_tftd
IfFileExists "$TFTD_DIR\GEOGRAPH\*.*" 0 confirm_tftd
IfFileExists "$TFTD_DIR\MAPS\*.*" 0 confirm_tftd
Expand All @@ -592,6 +591,7 @@ Function ValidateXcom
IfFileExists "$TFTD_DIR\TERRAIN\*.*" 0 confirm_tftd
IfFileExists "$TFTD_DIR\UFOGRAPH\*.*" 0 confirm_tftd
IfFileExists "$TFTD_DIR\UNITS\*.*" 0 confirm_tftd
IfFileExists "$TFTD_DIR\GEOGRAPH\UP001.BDY" 0 confirm_tftd ; unique file
IfFileExists "$TFTD_DIR\XcuSetup.bat" confirm_tftd_xcu
Goto validate_tftd_yes
confirm_tftd:
Expand Down

0 comments on commit 88a3ac0

Please sign in to comment.