convert parse_zspr to staticmethod

This commit is contained in:
Fabian Dill 2021-05-08 01:44:37 +02:00
parent 36ef9e8a72
commit cf488e5a5d
1 changed files with 2 additions and 1 deletions

View File

@ -662,7 +662,8 @@ class Sprite():
arr[y + 8][x + 8] = bottom_right[y][x]
return arr
def parse_zspr(self, filedata, expected_kind):
@staticmethod
def parse_zspr(filedata, expected_kind):
logger = logging.getLogger('ZSPR')
headerstr = "<4xBHHIHIHH6x"
headersize = struct.calcsize(headerstr)