def readCheck(self): # Read Checkpoints (unsigned presumably) c8, c16, c32 = self.readu8(), self.readu16(), self.readu32() if c8 == c16 == c32 == self.checkCount: self.checkCount += 1 # print "checkCount =", self.checkCount return self.checkCount else: self.checkCount += 1 Torque_Util.dump_writeErr( "Error! Checkpoint mismatch! (%d %d %d(8,16,32), should be %d)" % (c8, c16, c32, self.checkCount - 1) )
def readCheck(self): # Read Checkpoints (unsigned presumably) c8, c16, c32 = self.readu8(), self.readu16(), self.readu32() if c8 == c16 == c32 == self.checkCount: self.checkCount += 1 #print "checkCount =", self.checkCount return self.checkCount else: self.checkCount += 1 Torque_Util.dump_writeErr( "Error! Checkpoint mismatch! (%d %d %d(8,16,32), should be %d)" % (c8, c16, c32, self.checkCount - 1))