fix: Bad path combining causing custom resources not to load (#1077)

Co-authored-by: Nekromateion <43814053+Nekromateion@users.noreply.github.com>
This commit is contained in:
Regalia
2025-01-13 11:59:43 +00:00
committed by GitHub
parent b21a7698e1
commit 7475ed7e32
2 changed files with 6 additions and 3 deletions

View File

@@ -75,7 +75,8 @@ namespace VRCX
public string CustomVrScriptPath()
{
var output = string.Empty;
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VRCX\\customvr.js");
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VRCX",
"customvr.js");
if (File.Exists(filePath))
output = filePath;
return output;

View File

@@ -83,7 +83,8 @@ namespace VRCX
public string CustomCssPath()
{
var output = string.Empty;
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VRCX\\custom.css");
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VRCX",
"custom.css");
if (File.Exists(filePath))
output = filePath;
return output;
@@ -92,7 +93,8 @@ namespace VRCX
public string CustomScriptPath()
{
var output = string.Empty;
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VRCX\\custom.js");
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VRCX",
"custom.js");
if (File.Exists(filePath))
output = filePath;
return output;