Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
Fixed issue with 32 bit systems not indexing correctly
  • Loading branch information
brysondev authored Jan 5, 2021
1 parent e8b4d65 commit 6ee67d9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions of_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,20 @@ if not exist %STEAM_REG_PATH%\NUL (
)

:32bitSteam
set PATH_STEAM=HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Valve\Steam
:: Steam fucked up the registry keys for 32 bit systems https://i.imgur.com/w816RTW.png
:: Gotta use HKLM

set PATH_STEAM=HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam
set VALUE_STEAM=InstallPath

FOR /F "usebackq skip=2 tokens=1,2*" %%A IN (`REG QUERY %PATH_STEAM% /v %VALUE_STEAM% 2^>nul`) DO (
FOR /F "usebackq skip=2 tokens=1,2*" %%A IN (`REG QUERY %PATH_STEAM% /reg:32 /v %VALUE_STEAM% 2^>nul`) DO (
set STEAM_REG_PATH=%%C
)

set "STEAM_REG_PATH=%STEAM_REG_PATH%\steamapps\sourcemods"

if not exist %STEAM_REG_PATH%\NUL (
echo Steam not installed! ^(Or you've messed with your registry...^)
echo %STEAM_REG_PATH%
if not exist "%STEAM_REG_PATH%\" (
echo Steam not installed! ^(Or something broke...^)
goto exitmain
)

Expand Down Expand Up @@ -100,4 +103,4 @@ echo.
goto exitmain
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:exitmain
PAUSE
PAUSE

0 comments on commit 6ee67d9

Please sign in to comment.