Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gompocp committed Aug 30, 2021
1 parent e493232 commit 5160aa1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 :) )
Expand Down
7 changes: 5 additions & 2 deletions WorldPredownload/Cache/CacheManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion WorldPredownload/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down
2 changes: 1 addition & 1 deletion WorldPredownload/WorldPredownload.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<VrcReferences>true</VrcReferences>
<Version>1.6.0.0</Version>
<Version>1.6.1.0</Version>
<LangVersion>9</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>annotations</Nullable>
Expand Down

0 comments on commit 5160aa1

Please sign in to comment.