mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-07-05 15:29:49 +03:00
Compare commits
3 commits
0b2b3a9852
...
10b4d3af12
Author | SHA1 | Date | |
---|---|---|---|
|
10b4d3af12 | ||
|
88fa3ca1a0 | ||
|
0e1691ee4c |
2 changed files with 13 additions and 2 deletions
|
@ -20,6 +20,8 @@ public final class HashedFile extends HashedEntry {
|
|||
public final long size;
|
||||
@LauncherNetworkAPI
|
||||
private final byte[] digest;
|
||||
@LauncherNetworkAPI
|
||||
public final String url;
|
||||
|
||||
|
||||
public HashedFile(HInput input) throws IOException {
|
||||
|
@ -30,6 +32,13 @@ public HashedFile(HInput input) throws IOException {
|
|||
public HashedFile(long size, byte[] digest) {
|
||||
this.size = VerifyHelper.verifyLong(size, VerifyHelper.L_NOT_NEGATIVE, "Illegal size: " + size);
|
||||
this.digest = digest == null ? null : DIGEST_ALGO.verify(digest).clone();
|
||||
this.url = null;
|
||||
}
|
||||
|
||||
public HashedFile(long size, byte[] digest, String url) {
|
||||
this.size = VerifyHelper.verifyLong(size, VerifyHelper.L_NOT_NEGATIVE, "Illegal size: " + size);
|
||||
this.digest = digest == null ? null : DIGEST_ALGO.verify(digest).clone();
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# Modification of the launcher sashok724's v3 from Gravit [](https://travis-ci.com/GravitLauncher/Launcher)
|
||||
# Modification of the launcher sashok724's v3 from Gravit
|
||||
[](https://travis-ci.com/GravitLauncher/Launcher)
|
||||
[](https://discord.gg/b9QG4ygY75)
|
||||
|
||||
* [Discord channel](https://discord.gg/b9QG4ygY75)
|
||||
|
||||
|
|
Loading…
Reference in a new issue