mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 23:03:51 +02:00
Exclude Emojis from screenshot viewer
This commit is contained in:
@@ -11,6 +11,9 @@ namespace VRCX;
|
|||||||
|
|
||||||
public partial class AppApi
|
public partial class AppApi
|
||||||
{
|
{
|
||||||
|
[GeneratedRegex(@"\\Prints\\|\\Stickers\\|\\Emoji\\", RegexOptions.IgnoreCase, "en-US")]
|
||||||
|
private static partial Regex ScreenshotRegex();
|
||||||
|
|
||||||
public string GetExtraScreenshotData(string path, bool carouselCache)
|
public string GetExtraScreenshotData(string path, bool carouselCache)
|
||||||
{
|
{
|
||||||
var fileName = Path.GetFileNameWithoutExtension(path);
|
var fileName = Path.GetFileNameWithoutExtension(path);
|
||||||
@@ -118,9 +121,9 @@ public partial class AppApi
|
|||||||
if (!Directory.Exists(path))
|
if (!Directory.Exists(path))
|
||||||
return null;
|
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)
|
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();
|
var lastScreenshot = imageFiles.OrderByDescending(Directory.GetCreationTime).FirstOrDefault();
|
||||||
|
|
||||||
return lastScreenshot;
|
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).
|
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`.
|
Beta/nightly build available [here](https://vrcx.app/github/nightly) or in-app `Settings -> General -> Change build`.
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
|
|||||||
Reference in New Issue
Block a user