Beispiel #1
0
 def headerFromFile(self, f):
     f.seek(0)
     NeverFile.headerFromFile(self, f)
     self.variableResourceCount = self.dataHandler.readUIntFile(f)
     self.fixedResourceCount = self.dataHandler.readUIntFile(f)
     if self.fixedResourceCount != 0:
         print 'error, fixed resources in BIF files not implemented'
         return
     self.variableTableOffset = self.dataHandler.readUIntFile(f)
Beispiel #2
0
 def headerFromFile(self, f):
     f.seek(0)
     NeverFile.headerFromFile(self, f)
     self.bifCount = self.dataHandler.readUIntFile(f)
     self.keyCount = self.dataHandler.readUIntFile(f)
     self.offsetToFileTable = self.dataHandler.readUIntFile(f)
     self.offsetToKeyTable = self.dataHandler.readUIntFile(f)
     self.buildYear = self.dataHandler.readUIntFile(f)
     self.buildDay = self.dataHandler.readUIntFile(f)
     f.seek(32, 1)  #skip empty space
Beispiel #3
0
 def headerFromFile(self, f):
     f.seek(0)
     NeverFile.headerFromFile(self, f)
     if self.version != 'V3.0':
         self.stringSpecSize = 36
     else:
         self.stringSpecSize = 40  #sound length got added
     self.languageID = self.dataHandler.readUIntFile(f)
     self.stringCount = self.dataHandler.readUIntFile(f)
     self.stringDataOffset = self.dataHandler.readUIntFile(f)
     self.stringSpecs = self.stringCount * [None]
Beispiel #4
0
 def headerFromFile(self,f):
     NeverFile.headerFromFile(self,f)
     self.languageCount = self.dataHandler.readIntFile(f)
     self.localizedStringSize = self.dataHandler.readIntFile(f)
     self.entryCount = self.dataHandler.readIntFile(f)
     self.offsetToLocalizedString = self.dataHandler.readIntFile(f)
     self.offsetToKeyList = self.dataHandler.readIntFile(f)
     self.offsetToResourceList = self.dataHandler.readIntFile(f)
     self.buildYear = self.dataHandler.readIntFile(f)
     self.buildDay = self.dataHandler.readIntFile(f)
     self.descriptionRef = f.read(4)
     f.seek(116,1) #skip header padding
Beispiel #5
0
 def headerFromFile(self, f, offset=-1):
     if offset >= 0:
         f.seek(offset)
     NeverFile.headerFromFile(self, f)
     self.structOffset = self.dataHandler.readUIntFile(f)
     self.structCount = self.dataHandler.readUIntFile(f)
     self.fieldOffset = self.dataHandler.readUIntFile(f)
     self.fieldCount = self.dataHandler.readUIntFile(f)
     self.labelOffset = self.dataHandler.readUIntFile(f)
     self.labelCount = self.dataHandler.readUIntFile(f)
     self.fieldDataOffset = self.dataHandler.readUIntFile(f)
     self.fieldDataCount = self.dataHandler.readUIntFile(f)
     self.fieldIndicesOffset = self.dataHandler.readUIntFile(f)
     self.fieldIndicesCount = self.dataHandler.readUIntFile(f) / 4
     self.listIndicesOffset = self.dataHandler.readUIntFile(f)
     self.listIndicesCount = self.dataHandler.readUIntFile(f) / 4
Beispiel #6
0
 def headerFromFile(self, f):
     f.seek(0)
     NeverFile.headerFromFile(self, f)
     self.EntryCount = self.dataHandler.readUIntFile(f)
     self.TableOffset = self.dataHandler.readUIntFile(f)