mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
Merge pull request #341 from Float3/master
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)
|
public void StartGameFromPath(string path, string arguments)
|
||||||
{
|
{
|
||||||
|
if (!path.EndsWith(".exe")) path = Path.Combine(path, "VRChat.exe");
|
||||||
Process.Start(new ProcessStartInfo
|
Process.Start(new ProcessStartInfo
|
||||||
{
|
{
|
||||||
WorkingDirectory = path,
|
WorkingDirectory = Path.GetDirectoryName(path),
|
||||||
FileName = $"{path}\\VRChat.exe",
|
FileName = path,
|
||||||
UseShellExecute = false,
|
UseShellExecute = false,
|
||||||
Arguments = arguments
|
Arguments = arguments
|
||||||
}).Close();
|
}).Close();
|
||||||
|
|||||||
Reference in New Issue
Block a user