Fix cache sizes

This commit is contained in:
Natsumi
2025-04-18 18:30:55 +10:00
parent 9241a70b34
commit 30d54a74dd
3 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ namespace VRCX
var versionLocation = GetAssetVersion(version, variantVersion); var versionLocation = GetAssetVersion(version, variantVersion);
if (!Directory.Exists(topDir)) if (!Directory.Exists(topDir))
return Path.Join(topDir, versionLocation); return Path.Join(topDir, versionLocation);
var versionSearchPattern = string.Concat("*", versionLocation.AsSpan(8)); var versionSearchPattern = string.Concat("*", versionLocation.AsSpan(16));
var dirs = Directory.GetDirectories(topDir, versionSearchPattern); var dirs = Directory.GetDirectories(topDir, versionSearchPattern);
if (dirs.Length > 0) if (dirs.Length > 0)
return dirs.OrderByDescending(dir => ReverseHexToDecimal(Path.GetFileName(dir)).Item2).First(); return dirs.OrderByDescending(dir => ReverseHexToDecimal(Path.GetFileName(dir)).Item2).First();
-6
View File
@@ -10756,12 +10756,6 @@ console.log(`isLinux: ${LINUX}`);
var { ref } = args; var { ref } = args;
D.ref = ref; D.ref = ref;
this.updateVRChatAvatarCache(); this.updateVRChatAvatarCache();
if (
ref.imageUrl === API.currentUser.currentAvatarImageUrl &&
!ref.assetUrl
) {
D.ref.assetUrl = API.currentUser.currentAvatarAssetUrl;
}
if (/quest/.test(ref.tags)) { if (/quest/.test(ref.tags)) {
D.isQuestFallback = true; D.isQuestFallback = true;
} }
-1
View File
@@ -208,7 +208,6 @@ export default class extends baseClass {
bio: '', bio: '',
bioLinks: [], bioLinks: [],
currentAvatar: '', currentAvatar: '',
currentAvatarAssetUrl: '',
currentAvatarImageUrl: '', currentAvatarImageUrl: '',
currentAvatarTags: [], currentAvatarTags: [],
currentAvatarThumbnailImageUrl: '', currentAvatarThumbnailImageUrl: '',