Merge pull request #341 from Float3/master

check if Override Path points to folder or exe
This commit is contained in:
Natsumi
2022-05-09 14:27:36 +12:00
committed by GitHub
+3 -2
View File
@@ -183,10 +183,11 @@ namespace VRCX
public void StartGameFromPath(string path, string arguments)
{
if (!path.EndsWith(".exe")) path = Path.Combine(path, "VRChat.exe");
Process.Start(new ProcessStartInfo
{
WorkingDirectory = path,
FileName = $"{path}\\VRChat.exe",
WorkingDirectory = Path.GetDirectoryName(path),
FileName = path,
UseShellExecute = false,
Arguments = arguments
}).Close();