Skip to content

Commit

Permalink
fix: path flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
livingflore committed Aug 13, 2024
1 parent df1abfb commit 805a806
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions BattleBitEACFix.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,20 @@ echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo.
echo Hi. This batch will reinstall EAC and install VCRedist 2015-2022 x86-64.
echo Hi. This batch will reinstall EAC and install VCRedist 2015-2022 x86-64.
pause
cls

echo 
SET GamePath=
if exist "%~dp0\BattleBit.exe" SET GamePath="%~dp0"
FOR /F "tokens=2* skip=2" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 671860" /v "InstallLocation"') do SET GamePath="%%b"
if DEFINED GamePath (
echo [...] Game Path: %GamePath%
) else (
echo [X] Unable to detect BattleBit Remastered folder. Please install the game first, then run this batch script.
echo If BattleBit is already installed, try running this batch script from the game folder:
echo Right click on the game in Steam ^> Manage ^> Browse local files.
pause
goto :eof
)
Expand Down Expand Up @@ -184,11 +187,12 @@ del %temp%\VC_redist.x86.exe
echo.
echo [+] Finished!
echo.
echo =================================================================================
echo NOTICE: If there's any errors above, screenshot them and post it to #community-help.
echo You might also need to run "Install & Repair Easy Anti Cheat" launch option
echo =============================================================================
echo NOTICE: Make sure to screenshot any errors above and provide them
echo in related Discord thread or conversation with BattleBit support.
echo You might need to run "Install & Repair Easy Anti Cheat" launch option
echo before running BattleBit itself.
echo =================================================================================[0m
echo =============================================================================[0m
echo.
CHOICE /C YN /M "Do you want to reboot your PC (recommended)"

Expand Down

0 comments on commit 805a806

Please sign in to comment.