diff --git a/Dotnet/AppApi/Common/Screenshot.cs b/Dotnet/AppApi/Common/Screenshot.cs index 717d1849..173f3347 100644 --- a/Dotnet/AppApi/Common/Screenshot.cs +++ b/Dotnet/AppApi/Common/Screenshot.cs @@ -11,6 +11,9 @@ namespace VRCX; public partial class AppApi { + [GeneratedRegex(@"\\Prints\\|\\Stickers\\|\\Emoji\\", RegexOptions.IgnoreCase, "en-US")] + private static partial Regex ScreenshotRegex(); + public string GetExtraScreenshotData(string path, bool carouselCache) { var fileName = Path.GetFileNameWithoutExtension(path); @@ -118,9 +121,9 @@ public partial class AppApi if (!Directory.Exists(path)) return null; - // exclude folder names that contain "Prints" or "Stickers" + // exclude folder names that contain "Prints", "Stickers" or "Emoji" var imageFiles = Directory.GetFiles(path, "*.png", SearchOption.AllDirectories) - .Where(x => !Regex.IsMatch(x, @"\\Prints\\|\\Stickers\\", RegexOptions.IgnoreCase)); + .Where(x => !ScreenshotRegex().IsMatch(x)); var lastScreenshot = imageFiles.OrderByDescending(Directory.GetCreationTime).FirstOrDefault(); return lastScreenshot; diff --git a/README.md b/README.md index 10326171..2899a1bb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ VRCX is an assistant/companion application for VRChat that provides information Download and install the latest installer (`VRCX_Setup.exe`) from [here](https://github.com/vrcx-team/VRCX/releases/latest). +For macOS and Linux check [here](https://github.com/vrcx-team/VRCX/wiki/Running-VRCX-on-Linux) for more info. + Beta/nightly build available [here](https://vrcx.app/github/nightly) or in-app `Settings -> General -> Change build`. # Features