use libraryfolders.vdf to resolve vrchat steam path on linux (#1076)

* use libraryfolders.vdf to resolve vrchat steam path

* fix electron screenshot combining paths incorrectly
This commit is contained in:
luna
2025-01-13 08:59:33 -03:00
committed by GitHub
parent 5bd6efbbb4
commit b21a7698e1
2 changed files with 36 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ namespace VRCX
{
public override string AddScreenshotMetadata(string path, string metadataString, string worldId, bool changeFilename = false)
{
var winePrefix = Path.Combine(_vrcPrefixPath, "/drive_c/");
var winePrefix = Path.Join(_vrcPrefixPath, "drive_c");
var winePath = path.Substring(3).Replace("\\", "/");
path = Path.Combine(winePrefix, winePath);