mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
uhhhhhhhhh Added IndexFile i guess
This commit is contained in:
parent
fbd54b4604
commit
26c3261848
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.classpath": true,
|
||||||
|
"**/.project": true,
|
||||||
|
"**/.settings": true,
|
||||||
|
"**/.factorypath": true
|
||||||
|
}
|
||||||
|
}
|
@ -111,6 +111,7 @@ public class UpdateManager {
|
|||||||
packFileStream = new Hash.HashInputStream(stream, "sha256");
|
packFileStream = new Hash.HashInputStream(stream, "sha256");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO: still launch the game if updating doesn't work?
|
// 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);
|
ui.handleExceptionAndExit(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,18 @@
|
|||||||
package link.infra.packwiz.installer.metadata;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user