mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 15:37:55 -05:00
Big performance gain to reccmp (#271)
This commit is contained in:
parent
a8254c048d
commit
8a528e4146
1 changed files with 3 additions and 1 deletions
|
@ -220,12 +220,14 @@ def get_recompiled_address(self, filename, line):
|
|||
found = False
|
||||
|
||||
logger.debug('Looking for %s:%d', filename, line)
|
||||
filename_basename = os.path.basename(filename).lower()
|
||||
|
||||
for fn in self.lines:
|
||||
# Sometimes a PDB is compiled with a relative path while we always have
|
||||
# an absolute path. Therefore we must
|
||||
try:
|
||||
if os.path.samefile(fn, filename):
|
||||
if (os.path.basename(fn).lower() == filename_basename and
|
||||
os.path.samefile(fn, filename)):
|
||||
filename = fn
|
||||
break
|
||||
except FileNotFoundError as e:
|
||||
|
|
Loading…
Reference in a new issue