Linux fixes

This commit is contained in:
Natsumi
2025-05-26 04:38:27 +10:00
parent 8b93bf5d57
commit c9687bd493
5 changed files with 41 additions and 16 deletions
+14
View File
@@ -104,6 +104,20 @@ namespace VRCX
public override string GetVRChatPhotosLocation()
{
var json = ReadConfigFile();
if (!string.IsNullOrEmpty(json))
{
var obj = JsonConvert.DeserializeObject<JObject>(json);
if (obj["picture_output_folder"] != null)
{
var photosDir = (string)obj["picture_output_folder"];
if (!string.IsNullOrEmpty(photosDir) && Directory.Exists(photosDir))
{
return photosDir;
}
}
}
return Path.Join(_vrcPrefixPath, "drive_c/users/steamuser/Pictures/VRChat");
}