mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Relaunch on game crash, log udon exceptions
This commit is contained in:
@@ -194,18 +194,22 @@ namespace VRCX
|
||||
}
|
||||
}
|
||||
|
||||
public void StartGameFromPath(string path, string arguments)
|
||||
public bool StartGameFromPath(string path, string arguments)
|
||||
{
|
||||
if (!path.EndsWith(".exe"))
|
||||
path = Path.Combine(path, "start_protected_game.exe");
|
||||
|
||||
if (!File.Exists(path))
|
||||
return false;
|
||||
|
||||
Process.Start(new ProcessStartInfo
|
||||
{
|
||||
WorkingDirectory = Path.GetDirectoryName(path),
|
||||
FileName = path,
|
||||
UseShellExecute = false,
|
||||
Arguments = arguments
|
||||
}).Close();
|
||||
})?.Close();
|
||||
return true;
|
||||
}
|
||||
|
||||
public void OpenLink(string url)
|
||||
@@ -428,6 +432,11 @@ namespace VRCX
|
||||
return Program.Version;
|
||||
}
|
||||
|
||||
public bool VrcClosedGracefully()
|
||||
{
|
||||
return LogWatcher.Instance.VrcClosedGracefully;
|
||||
}
|
||||
|
||||
public void ChangeTheme(int value)
|
||||
{
|
||||
WinformThemer.SetGlobalTheme(value);
|
||||
|
||||
Reference in New Issue
Block a user