From a5bdfdab2ec68ebfe99535a54b3b0cd8b95a87d6 Mon Sep 17 00:00:00 2001 From: Owl Date: Sat, 23 Aug 2025 00:29:45 -0400 Subject: bck exporter seems to be working --- smg_common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'smg_common.py') diff --git a/smg_common.py b/smg_common.py index 3c7bb0f..4fa4017 100644 --- a/smg_common.py +++ b/smg_common.py @@ -1,7 +1,7 @@ # padding stuff # padding string -class padding(): +class padding: # the fill string def __init__(self): @@ -14,16 +14,16 @@ class padding(): if ((type(start_index) != int) or (type(byte_alignment) != int) or (start_index < 0) - or (byte_alignment != 4 and byte_alignment != 32): + or (byte_alignment != 4 and byte_alignment != 32)): return None # return the fill string i = 0 rtn = "" while (start_index % byte_alignment != 0): - rtn += self.padding[i] + rtn += self.string[i] i += 1 start_index += 1 - return rtn + return bytes(rtn.encode("ascii")) # name tables -- cgit v1.2.3-70-g09d2