mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2026-01-03 17:19:39 +05:00
Ghidra: Ensure function names are set correctly in all cases
This commit is contained in:
@@ -28,8 +28,9 @@ def DefineCode(code):
|
||||
pass
|
||||
|
||||
def SetFunctionType(addr, sig):
|
||||
MakeFunction(addr)
|
||||
typeSig = CParserUtils.parseSignature(None, currentProgram, sig)
|
||||
ApplyFunctionSignatureCmd(toAddr(addr), typeSig, SourceType.USER_DEFINED).applyTo(currentProgram)
|
||||
ApplyFunctionSignatureCmd(toAddr(addr), typeSig, SourceType.USER_DEFINED, False, True).applyTo(currentProgram)
|
||||
|
||||
def SetType(addr, type):
|
||||
if type.startswith('struct '):
|
||||
|
||||
Reference in New Issue
Block a user