1. Victor Stinner
  2. hachoir

Commits

oliver_g  committed 01c19aa

nds parser: show FAT data region (undissected)

  • Participants
  • Parent commits becbd31
  • Branches nds-parser

Comments (0)

Files changed (1)

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

View file
             yield RawBytes(self, "pad2", self["arm7_source"].value - (self.current_size / 8))
         yield RawBytes(self, "arm7_bin", self["arm7_bin_size"].value)
 
+        # FAT
+        if self["fat_size"].value > 0:
+            if self["fat_offset"].value - (self.current_size / 8) > 0:
+                yield RawBytes(self, "pad3", self["fat_offset"].value - (self.current_size / 8))
+            yield RawBytes(self, "fat_data", self["fat_size"].value)
+
         # banner
         if self["banner_offset"].value > 0:
             if self["banner_offset"].value - (self.current_size / 8) > 0: