mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
Fix new/delete symbol reference (#384)
This commit is contained in:
parent
9a6d555508
commit
3f63950a7d
2 changed files with 12 additions and 6 deletions
|
@ -1,11 +1,21 @@
|
||||||
#ifdef 0
|
#ifdef 0
|
||||||
|
|
||||||
|
// aka `operator new`
|
||||||
// LIBRARY: ISLE 0x402f80
|
// LIBRARY: ISLE 0x402f80
|
||||||
// LIBRARY: LEGO1 0x10086240
|
// LIBRARY: LEGO1 0x10086240
|
||||||
// _malloc
|
// ??2@YAPAXI@Z
|
||||||
|
|
||||||
|
// aka `operator delete`
|
||||||
// LIBRARY: ISLE 0x402fa0
|
// LIBRARY: ISLE 0x402fa0
|
||||||
// LIBRARY: LEGO1 0x10086260
|
// LIBRARY: LEGO1 0x10086260
|
||||||
|
// ??3@YAXPAX@Z
|
||||||
|
|
||||||
|
// LIBRARY: ISLE 0x406dd0
|
||||||
|
// LIBRARY: LEGO1 0x1008a090
|
||||||
|
// _malloc
|
||||||
|
|
||||||
|
// LIBRARY: ISLE 0x406f00
|
||||||
|
// LIBRARY: LEGO1 0x1008a1c0
|
||||||
// _free
|
// _free
|
||||||
|
|
||||||
// LIBRARY: ISLE 0x408220
|
// LIBRARY: ISLE 0x408220
|
||||||
|
|
|
@ -29,11 +29,7 @@ def __init__(self, pdb, sym_recompfile, sym_logger, base_dir):
|
||||||
|
|
||||||
contrib_dict = {(s.section, s.offset): s.size for s in cv.sizerefs}
|
contrib_dict = {(s.section, s.offset): s.size for s in cv.sizerefs}
|
||||||
for pub in cv.publics:
|
for pub in cv.publics:
|
||||||
if (
|
if pub.type == "S_PUB32" and (pub.section, pub.offset) in contrib_dict:
|
||||||
pub.type == "S_PUB32"
|
|
||||||
and pub.name.startswith("_")
|
|
||||||
and (pub.section, pub.offset) in contrib_dict
|
|
||||||
):
|
|
||||||
size = contrib_dict[(pub.section, pub.offset)]
|
size = contrib_dict[(pub.section, pub.offset)]
|
||||||
|
|
||||||
info = RecompiledInfo()
|
info = RecompiledInfo()
|
||||||
|
|
Loading…
Reference in a new issue