mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
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:
@@ -75,7 +75,8 @@ namespace VRCX
|
|||||||
public string CustomVrScriptPath()
|
public string CustomVrScriptPath()
|
||||||
{
|
{
|
||||||
var output = string.Empty;
|
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))
|
if (File.Exists(filePath))
|
||||||
output = filePath;
|
output = filePath;
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
@@ -83,7 +83,8 @@ namespace VRCX
|
|||||||
public string CustomCssPath()
|
public string CustomCssPath()
|
||||||
{
|
{
|
||||||
var output = string.Empty;
|
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))
|
if (File.Exists(filePath))
|
||||||
output = filePath;
|
output = filePath;
|
||||||
return output;
|
return output;
|
||||||
@@ -92,7 +93,8 @@ namespace VRCX
|
|||||||
public string CustomScriptPath()
|
public string CustomScriptPath()
|
||||||
{
|
{
|
||||||
var output = string.Empty;
|
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))
|
if (File.Exists(filePath))
|
||||||
output = filePath;
|
output = filePath;
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
Reference in New Issue
Block a user