mirror of
https://github.com/FoxdieTeam/mgs_reversing.git
synced 2024-11-26 23:00:27 +00:00
move .clang-format to root, fix ida types in cleanup script
This commit is contained in:
parent
308a0238ec
commit
2fa7c319f6
@ -6,6 +6,8 @@ from shutil import which
|
||||
|
||||
data = pyperclip.paste()
|
||||
|
||||
# TODO: with a little more effort we can fix ghidra's "-1 < var" too
|
||||
|
||||
replaces = {
|
||||
# ghidra
|
||||
'undefined4': 'int',
|
||||
@ -16,11 +18,12 @@ replaces = {
|
||||
'byte': 'unsigned char',
|
||||
|
||||
# ida
|
||||
'BYTE': 'unsigned char',
|
||||
'QWORD': 'unsigned long long',
|
||||
'DWORD': 'unsigned int',
|
||||
'WORD': 'unsigned short',
|
||||
}
|
||||
'_BYTE': 'unsigned char',
|
||||
'_QWORD': 'unsigned long long',
|
||||
'_DWORD': 'unsigned int',
|
||||
'_WORD': 'unsigned short',
|
||||
'__int8': 'char',
|
||||
'__int16': 'short',
|
||||
|
||||
for fromm, to in replaces.items():
|
||||
data = data.replace(fromm, to)
|
||||
|
Loading…
Reference in New Issue
Block a user