uhhhhhhhhh Added IndexFile i guess

This commit is contained in:
comp500 2019-06-20 14:22:15 +01:00
parent fbd54b4604
commit 26c3261848
No known key found for this signature in database
GPG Key ID: 214C822FFEC586B5
3 changed files with 22 additions and 0 deletions

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
}
}

View File

@ -111,6 +111,7 @@ public class UpdateManager {
packFileStream = new Hash.HashInputStream(stream, "sha256");
} catch (Exception e) {
// TODO: still launch the game if updating doesn't work?
// TODO: ask user if they want to launch the game, exit(1) if they don't
ui.handleExceptionAndExit(e);
return;
}

View File

@ -1,5 +1,18 @@
package link.infra.packwiz.installer.metadata;
public class IndexFile {
import java.util.List;
import com.google.gson.annotations.SerializedName;
public class IndexFile {
@SerializedName("hash-format")
public String hashFormat;
public List<File> files;
public static class File {
public String file;
@SerializedName("hash-format")
public String hashFormat;
public String hash;
}
}