From 2e0014739b2cf1635f7e281d761c5a3c97d3ed5e Mon Sep 17 00:00:00 2001 From: ScrapW <19533993+ScrapW@users.noreply.github.com> Date: Sat, 23 Mar 2024 05:50:19 +0800 Subject: [PATCH] fix: Screenshot search is not working when custom path is set (#754) --- Dotnet/AppApi/Screenshot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dotnet/AppApi/Screenshot.cs b/Dotnet/AppApi/Screenshot.cs index 727da982..bb1978ff 100644 --- a/Dotnet/AppApi/Screenshot.cs +++ b/Dotnet/AppApi/Screenshot.cs @@ -168,7 +168,7 @@ namespace VRCX var stopwatch = new Stopwatch(); stopwatch.Start(); - var searchPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), "VRChat"); + var searchPath = GetVRChatPhotosLocation(); var screenshots = ScreenshotHelper.FindScreenshots(searchQuery, searchPath, (ScreenshotHelper.ScreenshotSearchType)searchType); JArray json = new JArray();