mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-04-24 07:07:10 -05:00
fix preprocessor/givepoke for variable-number-of-parameter macros
original-commit-id: 079afeea4626d21a179f3c836e3f1d1c9a1f6d83
This commit is contained in:
parent
30af3020f2
commit
d0aaf36be9
|
|
@ -1871,6 +1871,8 @@ class GivePoke(Command):
|
|||
4: {"name": "trainer_name_pointer", "class": MultiByteParam}, #should probably use TextLabelParam
|
||||
5: {"name": "pkmn_nickname", "class": MultiByteParam}, #XXX TextLabelParam ?
|
||||
}
|
||||
allowed_lengths = [4, 6]
|
||||
|
||||
def parse(self):
|
||||
self.params = {}
|
||||
byte = ord(rom[self.address])
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user