Skip to content

Commit 729b61b

Browse files
committed
Fixed Build.bat and SDK.bat for paths which contain spaces
- Removed CS:GO usermessage patch. Only the static Windows libraries need to be patched.
1 parent 188cf55 commit 729b61b

File tree

5 files changed

+6
-30653
lines changed

5 files changed

+6
-30653
lines changed

src/Build.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ setlocal EnableDelayedExpansion
1212
:: Store a base counting variable
1313
set /a num=0
1414

15+
:: Set the start directory for later reference
16+
set STARTDIR="%CD%"
17+
1518
:: Loop through all downloaded SDKs
16-
for /d %%d in (%CD%\sdks\*) do (
19+
for /d %%d in (%STARTDIR%\sdks\*) do (
1720

1821
:: Increment the counter
1922
set /a num+=1
@@ -46,7 +49,7 @@ if %choice% gtr %num% goto start
4649
echo you chose !option_%choice%!
4750

4851
:: Navigate to the Build directory (create it if it does not exist)
49-
if not exist %CD%\Build mkdir Build
52+
if not exist %STARTDIR%\Build mkdir Build
5053
cd Build
5154

5255
:: Create the make files for the selected SDK

src/SDK.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setlocal EnableDelayedExpansion
1313
set /a num=0
1414

1515
:: Set the start directory for later reference
16-
set STARTDIR=%CD%
16+
set STARTDIR="%CD%"
1717

1818
:: Loop through all sdks supported by the plugin
1919
for %%f in (%STARTDIR%\makefiles\sdk\*.*) do (

0 commit comments

Comments
 (0)