VRChat Path Override

This commit is contained in:
Natsumi
2022-03-18 09:07:08 +13:00
parent 7ad28fbc24
commit 98c65779c7
3 changed files with 34 additions and 25 deletions

View File

@@ -172,13 +172,7 @@ namespace VRCX
if (match.Success == true)
{
var path = match.Groups[1].Value;
Process.Start(new ProcessStartInfo
{
WorkingDirectory = path,
FileName = $"{path}\\VRChat.exe",
UseShellExecute = false,
Arguments = arguments
}).Close();
StartGameFromPath(path, arguments);
}
}
}
@@ -187,6 +181,17 @@ namespace VRCX
}
}
public void StartGameFromPath(string path, string arguments)
{
Process.Start(new ProcessStartInfo
{
WorkingDirectory = path,
FileName = $"{path}\\VRChat.exe",
UseShellExecute = false,
Arguments = arguments
}).Close();
}
public void OpenLink(string url)
{
if (url.StartsWith("http://") == true ||