Commits

oliver_g  committed eeb744d

nds parser: add createDescription for FileNameDirTable
This mainly displays some "debug" info.

  • Participants
  • Parent commits d7bdb1a

Comments (0)

Files changed (1)

File hachoir-parser/hachoir_parser/program/nds.py

         if self["entry_start"].value < self.parent.firstEntryOffset:
             self.parent.firstEntryOffset = self["entry_start"].value
 
+    def createDescription(self):
+        return "first file id: %d; parent directory id: %d (%d)" % (self["entry_file_id"].value, self["parent_id"].value, self["parent_id"].value & 0xFFF)
+
 class FileNameEntry(FieldSet):
     def createFields(self):
         yield Bits(self, "name_len", 7)