mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-06 00:32:01 +02:00
Exclude Emojis from screenshot viewer
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user