mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-04-07 04:50:23 +03:00
Default to __cdecl for name mangling
It's definitely ideal for everything to be declared explicitly, but it would require either manual intervention or a new dedicated script to do this for typedefs (that aren't methods), so we'll do this as the least worst option.
This commit is contained in:
parent
a2b777d666
commit
709bbf9a54
1 changed files with 2 additions and 8 deletions
|
|
@ -168,10 +168,7 @@ public class MSVC7Mangle extends GhidraScript {
|
||||||
f.getName() +
|
f.getName() +
|
||||||
"(): __thiscall not allowed for C symbols"
|
"(): __thiscall not allowed for C symbols"
|
||||||
);
|
);
|
||||||
default -> throw new Exception(
|
default -> "_" + f.getName(false); // Default to __cdecl
|
||||||
f.getName() +
|
|
||||||
"(): Need to specify calling convention"
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -400,10 +397,7 @@ public class MSVC7Mangle extends GhidraScript {
|
||||||
case "__thiscall" -> "E";
|
case "__thiscall" -> "E";
|
||||||
case "__fastcall" -> "I";
|
case "__fastcall" -> "I";
|
||||||
case "__stdcall" -> "G";
|
case "__stdcall" -> "G";
|
||||||
default -> throw new Exception(
|
default -> "A"; // Default to __cdecl
|
||||||
f.getName() +
|
|
||||||
"(): Need to specify calling convention"
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue