🚧 Add preliminary patch downloader
This commit is contained in:
parent
57c99b88fe
commit
3ee23f6445
4 changed files with 41 additions and 1 deletions
18
src/interfaces/ISolidSimple.ts
Normal file
18
src/interfaces/ISolidSimple.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
interface ISolidSimpleFile {
|
||||
/** Name of this file, e.g. `assets_swtor_de_de_-1to0.z01`. */
|
||||
name: string;
|
||||
/** Length of this file in bytes. */
|
||||
length: number;
|
||||
}
|
||||
|
||||
/** Simplified format of the Bencoded metafile.solid file */
|
||||
export default interface ISolidSimple {
|
||||
/** Date and time when this patch was created. */
|
||||
created: Date;
|
||||
/** List of files included with this patch (.zip, .z01, etc.) */
|
||||
files: ISolidSimpleFile[];
|
||||
/** Length of one piece in bytes, e.g. 4194304 for 4 MiB. */
|
||||
pieceLength: number;
|
||||
///** Concatenated hashes of all pieces. */
|
||||
//pieces: string;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue