Add helper to apply diff to an opcodes file
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user