diff --git a/CHANGELOG.md b/CHANGELOG.md index d139df0..fc60259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### WorldPredownload v1.6.1 +- Small bug fix + ### WorldPredownload v1.6.0 - Temporarily disable invite predownloading - Fixed downloading issues (Thanks [Natsumi](https://github.com/Natsumi-sama/) for your help :) ) diff --git a/WorldPredownload/Cache/CacheManager.cs b/WorldPredownload/Cache/CacheManager.cs index 45012ce..3d45e88 100644 --- a/WorldPredownload/Cache/CacheManager.cs +++ b/WorldPredownload/Cache/CacheManager.cs @@ -47,11 +47,14 @@ public static bool HasDownloadedWorld(string url) public static string ComputeAssetHash(string url) { var id = Utilities.ExtractFileId(url); + var hash = Utilities.ByteArrayToString(SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes(id))).ToUpper(); + #if DEBUG MelonLogger.Msg($"File Id: {id}"); + MelonLogger.Msg($"Hash: {hash}"); #endif - return Utilities.ByteArrayToString(SHA256.Create().ComputeHash(Encoding.UTF8.GetBytes(id))).ToUpper() - .Substring(0, 16); + + return hash.Substring(0, 16); } public static UnityEngine.Cache GetCache() diff --git a/WorldPredownload/Main.cs b/WorldPredownload/Main.cs index c2bd552..31db726 100644 --- a/WorldPredownload/Main.cs +++ b/WorldPredownload/Main.cs @@ -2,7 +2,7 @@ using UIExpansionKit.API; using WorldPredownload.UI; -[assembly: MelonInfo(typeof(WorldPredownload.WorldPredownload), "WorldPredownload", "1.6.0", "gompo", "https://github.com/gompocp/VRChatMods/releases/")] +[assembly: MelonInfo(typeof(WorldPredownload.WorldPredownload), "WorldPredownload", "1.6.1", "gompo", "https://github.com/gompocp/VRChatMods/releases/")] [assembly: MelonGame("VRChat", "VRChat")] [assembly: VerifyLoaderVersion(0, 4, 3, true)] diff --git a/WorldPredownload/WorldPredownload.csproj b/WorldPredownload/WorldPredownload.csproj index 8ff5a45..8540f9d 100644 --- a/WorldPredownload/WorldPredownload.csproj +++ b/WorldPredownload/WorldPredownload.csproj @@ -3,7 +3,7 @@ net472 true - 1.6.0.0 + 1.6.1.0 9 true annotations