From 3c741cd2192271f9ecf2adf5de4a8624dcda5678 Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 7 Oct 2019 17:58:10 +0100 Subject: [PATCH] Check output size --- splashbuilder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/splashbuilder.py b/splashbuilder.py index ccda4d0..7ee41b4 100644 --- a/splashbuilder.py +++ b/splashbuilder.py @@ -314,6 +314,10 @@ class BootSplash(object): self._sound.write(f) self._sound.write_ch(f) + print("Output size: {t}".format(t=f.tell())) + + if f.tell() > 0x3DB: + raise Exception("This boot splash is bigger than 987 bytes and will not work.") def main():