From e1b64dfd65e6d55533c7d02b5295e63e397a0b5b Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Thu, 25 Dec 2025 16:42:57 +0100 Subject: [PATCH] enable folder creation by default on IDA 9.3+ testing showed that this is now fast enough to not cause meaningful slowdowns --- .../Outputs/ScriptResources/Targets/IDA.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Il2CppInspector.Common/Outputs/ScriptResources/Targets/IDA.py b/Il2CppInspector.Common/Outputs/ScriptResources/Targets/IDA.py index a4a88dc..886036d 100644 --- a/Il2CppInspector.Common/Outputs/ScriptResources/Targets/IDA.py +++ b/Il2CppInspector.Common/Outputs/ScriptResources/Targets/IDA.py @@ -10,19 +10,16 @@ import ida_ua import ida_segment import ida_funcs import ida_xref +import ida_pro -try: # 7.7+ +if ida_pro.IDA_SDK_VERSION > 770: import ida_srclang - IDACLANG_AVAILABLE = True - print("IDACLANG available") -except ImportError: - IDACLANG_AVAILABLE = False - -try: import ida_dirtree + IDACLANG_AVAILABLE = True FOLDERS_AVAILABLE = True - print("folders available") -except ImportError: + print("IDACLANG available") +else: + IDACLANG_AVAILABLE = False FOLDERS_AVAILABLE = False #try: @@ -179,7 +176,7 @@ class IDADisassemblerInterface(BaseDisassemblerInterface): # optional def add_function_to_group(self, address: int, group: str): - if not FOLDERS_AVAILABLE or True: # enable at your own risk - this is slow + if not FOLDERS_AVAILABLE or ida_pro.IDA_SDK_VERSION < 930: # enable at your own risk on pre 9.3 - this is slow return if group not in self._folders: