From fc59656e057fdd3cd0a152113de09699305dc2c9 Mon Sep 17 00:00:00 2001 From: Float3 <86748455+Float3@users.noreply.github.com> Date: Tue, 16 Aug 2022 23:26:22 +0200 Subject: [PATCH] Fix operator precedence in FindVRCexePath The concatenation bound before the comparison, so the path was compared to "" and the method returned a bare \VRChat.exe with no directory. (cherry picked from commit d905493) --- VRCLauncher/Model/Config.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VRCLauncher/Model/Config.cs b/VRCLauncher/Model/Config.cs index eb00da8..03bab8a 100644 --- a/VRCLauncher/Model/Config.cs +++ b/VRCLauncher/Model/Config.cs @@ -111,7 +111,7 @@ public static string FindVRCPath() public string FindVRCexePath() { - return FindVRCPath() + LocalTestVRCWPath == "" ? "\\launch.exe" : "\\VRChat.exe"; + return FindVRCPath() + (LocalTestVRCWPath == "" ? "\\launch.exe" : "\\VRChat.exe"); } public void Save()