Ejemplo n.º 1
0
 def __init__(self):
     Editable.__init__(self)
     self.files = None
     self.restrict('files')
     self.project = Project()
     self.restrict('project')
     self.game_name = None
     self.game_code = None
     self.region_code = None
     self.color = '#E5E4E2'
     self.header = None
     self.config = {}
Ejemplo n.º 2
0
 def __init__(self, reader=None):
     Editable.__init__(self)
     self.string('magic', length=4, default='NARC')
     self.uint16('endian', default=0xFFFE)
     self.uint16('version', default=0x102)
     self.uint32('size_')
     self.uint16('headersize')
     self.uint16('numblocks', default=3)
     self.fatb = FATB(self)
     self.fntb = FNTB(self)
     self.fimg = FIMG(self)
     self.freeze()
     if reader is not None:
         self.load(reader)