Check output size

This commit is contained in:
Godzil 2019-10-07 17:58:10 +01:00
parent 04dd205956
commit 3c741cd219

View File

@ -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():