mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
* Fix process detection and resource leaks Critical bugs: - Fix VRChat detection by removing .exe from process name Performance: - Use GetProcessesByName() to avoid scanning all processes - Optimize IsSteamVRRunning to check exact matches first Resource management: - Add Process.Dispose() calls to prevent handle leaks - Standardize on Dispose() instead of Close() * Fix broken ExitCode check in StartGame Remove ExitCode check that always threw an exception. You cannot access Process.ExitCode on a process that is still running~ it throws InvalidOperationException. Steam stays running after starting VRChat, so this check always failed. Simplified to return true when Process.Start() succeeds, since Steam handles VRChat launch asynchronously and there's no way to verify immediate success. Also changed Close() to Dispose() for consistency.