Automatically try both 32 and 64-bit paths for Tools

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2017-11-19 20:32:08 +01:00
parent f610d01f96
commit 282998baeb
4 changed files with 15 additions and 15 deletions
+1 -6
View File
@@ -1,9 +1,4 @@
@ECHO OFF
:: Fallback
SET "GARRYSMODPATH=C:\Program Files (x86)\Steam\steamapps\common\GarrysMod"
:: Retrieve Garry's Mod path from Regristry
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 4000" /v InstallLocation') DO SET "GARRYSMODPATH=%%B"
call env.win.bat
"%GARRYSMODPATH%\bin\gmad.exe" create -folder "%CD%\Source" -out "%CD%\Pack.gma"
PAUSE