mirror of
https://github.com/FIX94/hbc.git
synced 2024-11-29 05:54:19 +01:00
Error out if key is missing
This commit is contained in:
parent
20e887db90
commit
4d79df1ca7
@ -1501,6 +1501,8 @@ class WiiWadMaker(WiiWad):
|
||||
self.data_off = self.f.tell()
|
||||
|
||||
def adddata(self, data, cid):
|
||||
if self.tik.title_key is None:
|
||||
raise Exception("Required key is not available")
|
||||
i = self.tmd.find_cr_by_cid(cid)
|
||||
cr = self.tmd.get_content_records()[i]
|
||||
cr.sha = SHA.new(data).digest()
|
||||
|
Loading…
Reference in New Issue
Block a user