mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fix loading custom.css from custom path
This commit is contained in:
@@ -75,8 +75,7 @@ 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",
|
var filePath = Path.Combine(Program.AppDataDirectory, "customvr.js");
|
||||||
"customvr.js");
|
|
||||||
if (File.Exists(filePath))
|
if (File.Exists(filePath))
|
||||||
output = filePath;
|
output = filePath;
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
@@ -83,8 +83,7 @@ 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",
|
var filePath = Path.Combine(Program.AppDataDirectory, "custom.css");
|
||||||
"custom.css");
|
|
||||||
if (File.Exists(filePath))
|
if (File.Exists(filePath))
|
||||||
output = filePath;
|
output = filePath;
|
||||||
return output;
|
return output;
|
||||||
@@ -93,8 +92,7 @@ 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",
|
var filePath = Path.Combine(Program.AppDataDirectory, "custom.js");
|
||||||
"custom.js");
|
|
||||||
if (File.Exists(filePath))
|
if (File.Exists(filePath))
|
||||||
output = filePath;
|
output = filePath;
|
||||||
return output;
|
return output;
|
||||||
|
|||||||
+8
-1
@@ -5459,6 +5459,10 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
$app.data.dontLogMeOut = false;
|
$app.data.dontLogMeOut = false;
|
||||||
|
|
||||||
API.$on('LOGIN', async function (args) {
|
API.$on('LOGIN', async function (args) {
|
||||||
|
// early loading indicator
|
||||||
|
this.isRefreshFriendsLoading = true;
|
||||||
|
$app.feedTable.loading = true;
|
||||||
|
|
||||||
$app.friendLog = new Map();
|
$app.friendLog = new Map();
|
||||||
$app.feedTable.data = [];
|
$app.feedTable.data = [];
|
||||||
$app.feedSessionTable = [];
|
$app.feedSessionTable = [];
|
||||||
@@ -22254,7 +22258,10 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
try {
|
try {
|
||||||
var loggingEnabled =
|
var loggingEnabled =
|
||||||
await this.getVRChatRegistryKey('LOGGING_ENABLED');
|
await this.getVRChatRegistryKey('LOGGING_ENABLED');
|
||||||
if (loggingEnabled === null) {
|
if (
|
||||||
|
loggingEnabled === null ||
|
||||||
|
typeof loggingEnabled === 'undefined'
|
||||||
|
) {
|
||||||
// key not found
|
// key not found
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user