Skip to content

Commit

Permalink
Fix a bug that SteamAppsLocation.exe failed to locate gamedir.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Jan 14, 2024
1 parent 69870b6 commit e23369b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/install-helper-AIO.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ if not "%GameDir%"=="" (
goto start_copy
)

echo %GameAppId% > "%SolutionDir%tools\steam_appid.txt"

for /f "delims=" %%a in ('"%SolutionDir%\tools\SteamAppsLocation" %GameAppId% InstallDir') do set OutputString=%%a

if %ERRORLEVEL% equ 0 (
if not "%OutputString%"=="" (
set "GameDir=%OutputString%"
goto start_copy
)
Expand Down
1 change: 0 additions & 1 deletion tools/steam_appid.txt

This file was deleted.

0 comments on commit e23369b

Please sign in to comment.