From e23369b9f13a524dc3a8a2605eafd09ac3b0935f Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Sun, 14 Jan 2024 15:39:19 +0800 Subject: [PATCH] Fix a bug that SteamAppsLocation.exe failed to locate gamedir. --- scripts/install-helper-AIO.bat | 4 +++- tools/steam_appid.txt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) delete mode 100644 tools/steam_appid.txt diff --git a/scripts/install-helper-AIO.bat b/scripts/install-helper-AIO.bat index 41c01483..9ad92b34 100644 --- a/scripts/install-helper-AIO.bat +++ b/scripts/install-helper-AIO.bat @@ -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 ) diff --git a/tools/steam_appid.txt b/tools/steam_appid.txt deleted file mode 100644 index 2bbd69c2..00000000 --- a/tools/steam_appid.txt +++ /dev/null @@ -1 +0,0 @@ -70