Skip to content

Commit

Permalink
Solution: Fix PostBuild to respect %SteamPath% if already set
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWillden committed Oct 28, 2020
1 parent 98f0379 commit b92d8bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions utils/PostBuild.bat
@@ -1,8 +1,10 @@
@echo off
FOR /f "tokens=1,2*" %%E in ('reg query "HKEY_CURRENT_USER\Software\Valve\Steam"') DO (
IF "%%E"=="SteamPath" (
set SteamPath=%%G
)
IF "%SteamPath%" EQU "" (
FOR /f "tokens=1,2*" %%E in ('reg query "HKEY_CURRENT_USER\Software\Valve\Steam"') DO (
IF "%%E"=="SteamPath" (
set SteamPath=%%G
)
)
)
IF "%SteamPath%" NEQ "" (
XCOPY /R /Y /V %1 "%SteamPath%\SteamApps\common\Fortress Forever\FortressForever\bin"
Expand Down

0 comments on commit b92d8bb

Please sign in to comment.