Exclude Emojis from screenshot viewer

This commit is contained in:
Natsumi
2025-11-22 18:24:36 +11:00
parent a51e44492c
commit 8e1f83ecff
2 changed files with 7 additions and 2 deletions

View File

@@ -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;

View File

@@ -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