🚧 Add preliminary patch downloader

This commit is contained in:
C-3PO 2018-06-23 22:14:55 +02:00
parent 57c99b88fe
commit 3ee23f6445
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
4 changed files with 41 additions and 1 deletions

View 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;
}