fxconv: allow adding bytearray to ObjectData

This commit is contained in:
Lephenixnoir 2021-06-02 09:21:54 +02:00
parent d0d71b2889
commit ddf05cfadb
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -180,6 +180,8 @@ class ObjectData:
def __add__(self, other):
if isinstance(other, bytes):
self.elements.append(other)
elif isinstance(other, bytearray):
self.elements.append(bytes(other))
elif isinstance(other, Ref) and other.name:
self.elements.append((other.name, other.offset))
elif isinstance(other, Ref) and other.data: