From 36a52b5c7309ca5e1c5d006606185afa28dcae01 Mon Sep 17 00:00:00 2001 From: seiya-git Date: Mon, 1 Jan 2024 12:19:27 +0300 Subject: [PATCH] PFS0 fixes --- py/nstools/Fs/Pfs0.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py/nstools/Fs/Pfs0.py b/py/nstools/Fs/Pfs0.py index 9f5e421..cb44291 100644 --- a/py/nstools/Fs/Pfs0.py +++ b/py/nstools/Fs/Pfs0.py @@ -82,6 +82,9 @@ def getStringTableSize(self): self._stringTableSize = len(stringTableNonPadded) return self._stringTableSize + def updateHashHeader(self): + pass + def getFirstFileOffset(self): return self.files[0].offset @@ -186,7 +189,6 @@ def updateHashHeader(self): if len(self.files) > 0: if self.files[0]['offset'] - headerSize > 0: stringTable += '\x00' * (self.files[0]['offset'] - headerSize - 1) - print(self.files[0]['offset'] - headerSize) h += stringTable.encode() headerHex = h.hex()