home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 9116 / py_indentation.JPG
Joint Photographic Experts Group Image  |  2023-01-01  |  87.6 KB  |  706x866  |  16-bit (14,201 colors)
   ocr: 1 class NifFile: py from Noesis folder: 2 def init (self, bs): tab line matches with start of "def" 3 self.bs = bs 4 self.nifTextures = [] 4 blanks per tab 5 self.nifMeshes = [] 6 self.nifTriGeom = [] 7 self.nifSequences == [] 8 self.nifHack = NIF HACK NONE 9 10 def loadHeader(selt): 11 bs = self.bs 12 try: 13 headerInfo = bytearray() code from xentax forum: 1 def loadHeader(self): there are 3 blanks before "def" SO the 2 bs = self.bs tab lines don't match 3 self.1SNDSNIF = False A try: 5 headerInfo = bytearray () 6 while not DS.CheCREOF0: / b= = bs.readBytes(1) 8 if b[0] = Ox0A: 9 break 10 he ...