mirror of
https://github.com/awgil/ffxiv_reverse.git
synced 2025-04-21 14:47:45 +00:00
Don't print out unknown packets by default
This commit is contained in:
parent
4465eb647b
commit
cbca3893d4
1 changed files with 6 additions and 2 deletions
|
@ -268,6 +268,8 @@ class ffnetwork(idaapi.plugin_t):
|
||||||
wanted_name = 'ffnetwork'
|
wanted_name = 'ffnetwork'
|
||||||
wanted_hotkey = ''
|
wanted_hotkey = ''
|
||||||
|
|
||||||
|
_unknown_in_output = False
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
return idaapi.PLUGIN_OK
|
return idaapi.PLUGIN_OK
|
||||||
|
|
||||||
|
@ -306,8 +308,10 @@ class ffnetwork(idaapi.plugin_t):
|
||||||
continue
|
continue
|
||||||
opcodemap[index] = case
|
opcodemap[index] = case
|
||||||
for k, v in sorted(opcodemap.items()):
|
for k, v in sorted(opcodemap.items()):
|
||||||
name = packet_names[k] if k in packet_names else f'Packet{k}'
|
if k in packet_names:
|
||||||
print(f'{name} = {hex(v)}')
|
print(f'{packet_names[k]} = 0x{v:0{4}X},')
|
||||||
|
elif self._unknown_in_output:
|
||||||
|
print(f'Packet{k} = 0x{v:0{4}X},')
|
||||||
|
|
||||||
def term(self):
|
def term(self):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue