Commits

oliver_g committed 01c19aa

nds parser: show FAT data region (undissected)

Comments (0)

Files changed (1)

hachoir-parser/hachoir_parser/program/nds.py

             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: