mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
GifManager: use STL members (#460)
* Truncate symbol names to 255 characters when matching * GifManager refactor * Refactor, annotations --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
@@ -170,6 +170,12 @@ class CompareDb:
|
||||
|
||||
def _match_on(self, compare_type: SymbolType, addr: int, name: str) -> bool:
|
||||
# Update the compare_type here too since the marker tells us what we should do
|
||||
|
||||
# Truncate the name to 255 characters. It will not be possible to match a name
|
||||
# longer than that because MSVC truncates the debug symbols to this length.
|
||||
# See also: warning C4786.
|
||||
name = name[:255]
|
||||
|
||||
logger.debug("Looking for %s %s", compare_type.name.lower(), name)
|
||||
cur = self._db.execute(
|
||||
"""UPDATE `symbols`
|
||||
|
Reference in New Issue
Block a user