Files
VRCX/Dotnet
Roka 482d8abd6d Fix process detection bugs and resource leaks in AppApiElectron (GameHandler.cs) (#1444)
* 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.
2025-10-22 12:11:37 +11:00
..
2025-09-30 14:09:19 +13:00
2025-10-21 16:41:43 +11:00
2025-10-15 04:16:35 +11:00
2025-09-30 14:09:19 +13:00
2025-10-21 16:41:43 +11:00
2025-09-25 05:20:26 +12:00
2025-08-24 09:49:21 +12:00
2025-10-21 14:10:33 +11:00
2025-08-24 09:49:21 +12:00
2025-01-31 16:38:25 +13:00
2025-10-21 16:41:43 +11:00
2025-09-04 04:36:36 +12:00
2025-09-04 04:36:36 +12:00
2025-10-21 14:10:31 +11:00
2025-10-16 13:28:19 +11:00
2025-01-31 16:38:25 +13:00