From 133368a326aec397449e3ca733631df7d7a70978 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sat, 24 Apr 2021 14:47:19 +1200 Subject: [PATCH] Fix regex for build 1084 --- AppApi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppApi.cs b/AppApi.cs index 9635b45d..64f97fe8 100644 --- a/AppApi.cs +++ b/AppApi.cs @@ -139,8 +139,8 @@ namespace VRCX { using (var key = Registry.ClassesRoot.OpenSubKey(@"VRChat\shell\open\command")) { - // "C:\Program Files (x86)\Steam\steamapps\common\VRChat\launch.bat" "C:\Program Files (x86)\Steam\steamapps\common\VRChat" "%1" - var match = Regex.Match(key.GetValue(string.Empty) as string, "^\"(.+?)\\\\launch.bat\""); + // "C:\Program Files (x86)\Steam\steamapps\common\VRChat\launch.exe" "%1" %* + var match = Regex.Match(key.GetValue(string.Empty) as string, "(?!\")(.+?\\\\VRChat.*)(!?\\\\launch.exe\")"); if (match.Success == true) { var path = match.Groups[1].Value;