MCPcopy Index your code
hub / github.com/keystone-engine/keypatch / update_controls

Method update_controls

keypatch.py:988–1004  ·  view source on GitHub ↗
(self, arch, mode)

Source from the content-addressed store, hash-verified

986
987 # update some controls - including Encoding control
988 def update_controls(self, arch, mode):
989 # Fixup & Encoding-len are read-only controls
990 self.EnableField(self.c_raw_assembly, False)
991 self.EnableField(self.c_encoding_len, False)
992
993 # Encoding is enable to allow user to select & copy
994 self.EnableField(self.c_encoding, True)
995
996 if self.GetControlValue(self.c_endian) == 1:
997 endian = KS_MODE_BIG_ENDIAN
998 else:
999 endian = KS_MODE_LITTLE_ENDIAN
1000
1001 # update encoding with live assembling
1002 self._update_encoding(arch, mode | endian)
1003
1004 return 1
1005
1006 # get Patcher/FillRange options
1007 def get_opts(self, name=None):

Callers 2

update_patchformMethod · 0.95
OnFormChangeMethod · 0.80

Calls 1

_update_encodingMethod · 0.95

Tested by

no test coverage detected