mirror of https://github.com/zeldaret/botw.git
				
				
				
			tools/rename_functions_in_ida: Drop support for IDA <7.4
This commit is contained in:
		
							parent
							
								
									a92b163884
								
							
						
					
					
						commit
						cd6bf1e821
					
				| 
						 | 
				
			
			@ -1,6 +1,5 @@
 | 
			
		|||
# Renames functions in an IDA database to match the function names
 | 
			
		||||
# in the decompiled source code.
 | 
			
		||||
# This script needs to be compatible with Python 2.7.
 | 
			
		||||
 | 
			
		||||
import csv
 | 
			
		||||
import idc
 | 
			
		||||
| 
						 | 
				
			
			@ -22,4 +21,4 @@ with open(csv_path, "r") as f:
 | 
			
		|||
        if decomp_name[-1] in MARKERS:
 | 
			
		||||
            decomp_name = decomp_name[:-1]
 | 
			
		||||
 | 
			
		||||
        idc.MakeName(addr, decomp_name)
 | 
			
		||||
        idc.set_name(addr, decomp_name)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue