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

View File

@@ -107,7 +107,7 @@ namespace VRCX
var versionLocation = GetAssetVersion(version, variantVersion);
if (!Directory.Exists(topDir))
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);
if (dirs.Length > 0)
return dirs.OrderByDescending(dir => ReverseHexToDecimal(Path.GetFileName(dir)).Item2).First();

View File

@@ -10756,12 +10756,6 @@ console.log(`isLinux: ${LINUX}`);
var { ref } = args;
D.ref = ref;
this.updateVRChatAvatarCache();
if (
ref.imageUrl === API.currentUser.currentAvatarImageUrl &&
!ref.assetUrl
) {
D.ref.assetUrl = API.currentUser.currentAvatarAssetUrl;
}
if (/quest/.test(ref.tags)) {
D.isQuestFallback = true;
}

View File

@@ -208,7 +208,6 @@ export default class extends baseClass {
bio: '',
bioLinks: [],
currentAvatar: '',
currentAvatarAssetUrl: '',
currentAvatarImageUrl: '',
currentAvatarTags: [],
currentAvatarThumbnailImageUrl: '',