Skip to content

Commit

Permalink
PFS0 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Jan 1, 2024
1 parent 76b9376 commit 36a52b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/nstools/Fs/Pfs0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 36a52b5

Please sign in to comment.