diff --git a/tools/reccomp/reccomp.py b/tools/reccomp/reccomp.py index 5b0a6f3b..aac33f2f 100755 --- a/tools/reccomp/reccomp.py +++ b/tools/reccomp/reccomp.py @@ -125,7 +125,7 @@ def get_wine_path(fn): # Convert filename to Wine path filename = get_wine_path(filename) - #print('Looking for ' + filename + ' line ' + str(line)) + print('Looking for ' + filename + ' line ' + str(line)) addr = None found = False @@ -218,4 +218,5 @@ def parse_asm(file, addr, size): except UnicodeDecodeError: break -print('\nTotal accuracy %.2f%% across %i functions' % (total_accuracy / function_count * 100, function_count)) +if function_count > 0: + print('\nTotal accuracy %.2f%% across %i functions' % (total_accuracy / function_count * 100, function_count))