fxconv: allow adding bytearray to ObjectData

This commit is contained in:
Lephenixnoir 2021-06-02 09:21:54 +02:00
parent d0d71b2889
commit ddf05cfadb
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 0 deletions

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: