mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
check if Override Path points to folder or exe
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user