mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
allow unicode addresses in RomStr.to_asm
This commit is contained in:
parent
500d47f4cc
commit
a1579ab519
@ -148,7 +148,7 @@ class RomStr(str):
|
|||||||
that will be parsed, so that large patches of data aren't parsed as
|
that will be parsed, so that large patches of data aren't parsed as
|
||||||
code.
|
code.
|
||||||
"""
|
"""
|
||||||
if type(address) == str and "0x" in address:
|
if type(address) in [str, unicode] and "0x" in address:
|
||||||
address = int(address, 16)
|
address = int(address, 16)
|
||||||
|
|
||||||
start_address = address
|
start_address = address
|
||||||
|
Loading…
Reference in New Issue
Block a user