mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
VRChat Path Override
This commit is contained in:
19
AppApi.cs
19
AppApi.cs
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user