Skip to content

Commit 1be94f7

Browse files
committed
Properly escape slashes in specs
1 parent 1d4815f commit 1be94f7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

spec/acf_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"name" "Sacred Citadel"
2424
"gameid" "207930"
2525
"installed" "1"
26-
"appinstalldir" "C:\\Steam\\steamapps\\common\\sacred_citadel"
26+
"appinstalldir" "C:\\\\Steam\\\\steamapps\\\\common\\\\sacred_citadel"
2727
"language" "english"
2828
"BetaKey" "public"
2929
}
@@ -38,13 +38,13 @@
3838
}
3939
"checkguid"
4040
{
41-
"0" "Bin\\some.exe"
42-
"1" "Bin\\another.exe"
41+
"0" "Bin\\\\some.exe"
42+
"1" "Bin\\\\another.exe"
4343
}
4444
"InstallScripts"
4545
{
46-
"0" "_CommonRedist\\vcredist\\2008\\installscript.vdf"
47-
"1" "_CommonRedist\\vcredist\\2010\\installscript.vdf"
46+
"0" "_CommonRedist\\\\vcredist\\\\2008\\\\installscript.vdf"
47+
"1" "_CommonRedist\\\\vcredist\\\\2010\\\\installscript.vdf"
4848
}
4949
}
5050
EOS

spec/vdf_spec.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
{
99
"Registry"
1010
{
11-
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Activision\\Singularity"
11+
"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Activision\\\\Singularity"
1212
{
1313
"string"
1414
{
15-
"EXEString" "%INSTALLDIR%\\Binaries\\Singularity.exe"
15+
"EXEString" "%INSTALLDIR%\\\\Binaries\\\\Singularity.exe"
1616
"InstallPath" "%INSTALLDIR%"
1717
"IntVersion" "35.0"
1818
"Version" "1.0"
@@ -76,24 +76,24 @@
7676
{
7777
"DirectX"
7878
{
79-
"process 1" "%INSTALLDIR%\\redist\\DirectX\\DXSETUP.exe"
79+
"process 1" "%INSTALLDIR%\\\\redist\\\\DirectX\\\\DXSETUP.exe"
8080
"command 1" "/silent"
8181
"Description" "DirectX Installation"
8282
"NoCleanUp" "1"
8383
}
8484
"VC++"
8585
{
86-
"process 1" "%INSTALLDIR%\\redist\\vcredist_x86.exe"
86+
"process 1" "%INSTALLDIR%\\\\redist\\\\vcredist_x86.exe"
8787
"command 1" "/q:a"
88-
"process 2" "%INSTALLDIR%\\redist\\vcredist_x86_2005.exe"
88+
"process 2" "%INSTALLDIR%\\\\redist\\\\vcredist_x86_2005.exe"
8989
"command 2" "/q:a"
9090
"Description" "VC++ Redist Installation"
9191
"NoCleanUp" "1"
9292
}
9393
"PhysX Version"
9494
{
95-
"HasRunKey" "HKEY_LOCAL_MACHINE\\SOFTWARE\\AGEIA Technologies"
96-
"process 1" "%INSTALLDIR%\\redist\\PhysX_9.09.1112_SystemSoftware.exe"
95+
"HasRunKey" "HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\AGEIA Technologies"
96+
"process 1" "%INSTALLDIR%\\\\redist\\\\PhysX_9.09.1112_SystemSoftware.exe"
9797
"command 1" "/quiet"
9898
"NoCleanUp" "1"
9999
"MinimumHasRunValue" "9091112"

0 commit comments

Comments
 (0)