Add helper to apply diff to an opcodes file

This commit is contained in:
Flawed
2023-01-17 10:13:35 -08:00
parent ca6d47f2ac
commit f01677b034
2 changed files with 62 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ def generate_act_format(opcodes_file):
opcode_mapping = dict()
for line in opcodes_file.readlines():
match_groups = re.findall(r'^\s*([^\/].*)= (.*),\s*\/\/.*$', line)
match_groups = re.findall(r'^\s*([^\/].*)=\s*(.*),\s*\/\/.*$', line)
if len(match_groups) != 1:
continue