From fbc382c182545627cf6a52614dfaa2585f5ff394 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun, 18 Jun 2023 20:06:46 -0700 Subject: [PATCH] print debug info because now it literally only doesn't work on fucking github actions --- tools/reccomp/reccomp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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))