File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Il2CppInspector.Common/Outputs/ScriptResources/Targets Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1010import ida_segment
1111import ida_funcs
1212import ida_xref
13+ import ida_pro
1314
14- try : # 7.7+
15+ if ida_pro . IDA_SDK_VERSION > 770 :
1516 import ida_srclang
17+ import ida_dirtree
1618 IDACLANG_AVAILABLE = True
19+ FOLDERS_AVAILABLE = True
1720 print ("IDACLANG available" )
18- except ImportError :
21+ else :
1922 IDACLANG_AVAILABLE = False
20-
21- try :
22- import ida_dirtree
23- FOLDERS_AVAILABLE = True
24- print ("folders available" )
25- except ImportError :
2623 FOLDERS_AVAILABLE = False
2724
2825#try:
@@ -179,7 +176,7 @@ def import_c_typedef(self, type_def: str):
179176
180177 # optional
181178 def add_function_to_group (self , address : int , group : str ):
182- if not FOLDERS_AVAILABLE or True : # enable at your own risk - this is slow
179+ if not FOLDERS_AVAILABLE or ida_pro . IDA_SDK_VERSION < 930 : # enable at your own risk on pre 9.3 - this is slow
183180 return
184181
185182 if group not in self ._folders :
You can’t perform that action at this time.
0 commit comments