diff --git a/AppApi.cs b/AppApi.cs index 50317626..918f90b4 100644 --- a/AppApi.cs +++ b/AppApi.cs @@ -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();