diff --git a/legendary/models/manifest.py b/legendary/models/manifest.py index 489504c..a225b8c 100644 --- a/legendary/models/manifest.py +++ b/legendary/models/manifest.py @@ -5,6 +5,8 @@ import hashlib import logging import struct import zlib + +from base64 import b64encode from io import BytesIO logger = logging.getLogger('Manifest') @@ -127,6 +129,22 @@ class ManifestMeta: self.prereq_name = '' self.prereq_path = '' self.prereq_args = '' + # this build id is used for something called "delta file" which I guess I'll have to implement eventually + self._build_id = '' + + @property + def build_id(self): + if self._build_id: + return self._build_id + # this took a while to figure out and get right and I'm still not sure if it'll work for all games :x + s = hashlib.sha1() + s.update(struct.pack('