From 444ee2bda177dc25aa8c151acc1553ba474dbb7f Mon Sep 17 00:00:00 2001 From: JillianTo Date: Sun, 9 Mar 2025 19:10:49 -0400 Subject: [PATCH] don't run duplicate check during debug because we allow duplicates during that, rename file --- parser.py => Auto_Function_Parser.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename parser.py => Auto_Function_Parser.py (97%) diff --git a/parser.py b/Auto_Function_Parser.py similarity index 97% rename from parser.py rename to Auto_Function_Parser.py index 05da7f0..cce8094 100644 --- a/parser.py +++ b/Auto_Function_Parser.py @@ -252,11 +252,12 @@ if not debug: output_functs = list(set(tuple(funct) for funct in output_functs)) # Make sure there are no functions with the same starting address but different lengths -for i in range(len(output_functs)): - for j in range(i+1, len(output_functs)): - curr_funct_start = output_functs[i][0] - if curr_funct_start == output_functs[j][0]: - print(f"WARNING: {curr_funct_start} has multiple entries of different lengths, manually find correct one.") +if not debug: + for i in range(len(output_functs)): + for j in range(i+1, len(output_functs)): + curr_funct_start = output_functs[i][0] + if curr_funct_start == output_functs[j][0]: + print(f"WARNING: {curr_funct_start} has multiple entries of different lengths, manually find correct one.") print(f"{len(output_functs)} functions found!")