equal
deleted
inserted
replaced
629 dic[typeindex] = typevalue |
629 dic[typeindex] = typevalue |
630 if type not in dic: |
630 if type not in dic: |
631 type = self.CurrentNode.GetEntry(type)[1] |
631 type = self.CurrentNode.GetEntry(type)[1] |
632 if dic[type] == 0: |
632 if dic[type] == 0: |
633 try: |
633 try: |
634 value = int(value, 16) |
634 if value.startswith("0x"): |
|
635 value = int(value, 16) |
|
636 else: |
|
637 value = int(value) |
635 self.CurrentNode.SetEntry(index, subIndex, value) |
638 self.CurrentNode.SetEntry(index, subIndex, value) |
636 except: |
639 except: |
637 pass |
640 pass |
638 else: |
641 else: |
639 self.CurrentNode.SetEntry(index, subIndex, value) |
642 self.CurrentNode.SetEntry(index, subIndex, value) |