mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
fxconv: allow adding bytearray to ObjectData
This commit is contained in:
parent
d0d71b2889
commit
ddf05cfadb
1 changed files with 2 additions and 0 deletions
|
@ -180,6 +180,8 @@ class ObjectData:
|
||||||
def __add__(self, other):
|
def __add__(self, other):
|
||||||
if isinstance(other, bytes):
|
if isinstance(other, bytes):
|
||||||
self.elements.append(other)
|
self.elements.append(other)
|
||||||
|
elif isinstance(other, bytearray):
|
||||||
|
self.elements.append(bytes(other))
|
||||||
elif isinstance(other, Ref) and other.name:
|
elif isinstance(other, Ref) and other.name:
|
||||||
self.elements.append((other.name, other.offset))
|
self.elements.append((other.name, other.offset))
|
||||||
elif isinstance(other, Ref) and other.data:
|
elif isinstance(other, Ref) and other.data:
|
||||||
|
|
Loading…
Reference in a new issue