fxconv: allow adding bytearray to ObjectData

pull/9/head
Lephenixnoir 1 year ago
parent d0d71b2889
commit ddf05cfadb
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
  1. 2
      fxconv/fxconv.py

@ -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:

Loading…
Cancel
Save