Wrap OpenRA arguments in quotes
On Windows, if the path to the replay contained spaces, it wouldn't be parsed correctly and would crash the game.
This commit is contained in:
@@ -59,7 +59,7 @@ Section "-Reg" Reg
|
||||
; Replay file association
|
||||
WriteRegStr HKLM "Software\Classes\.orarep" "" "OpenRA_replay"
|
||||
WriteRegStr HKLM "Software\Classes\OpenRA_replay\DefaultIcon" "" "$INSTDIR\OpenRA.ico,0"
|
||||
WriteRegStr HKLM "Software\Classes\OpenRA_replay\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Launch.Replay=%1"
|
||||
WriteRegStr HKLM "Software\Classes\OpenRA_replay\Shell\Open\Command" "" "$INSTDIR\OpenRA.exe Launch.Replay=$\"%1$\""
|
||||
|
||||
; OpenRA URL Scheme
|
||||
WriteRegStr HKLM "Software\Classes\openra" "" "URL:OpenRA scheme"
|
||||
|
||||
Reference in New Issue
Block a user