mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 02:07:02 +03:00
Tiny steps towards implementing C runtime
This commit is contained in:
parent
ccd2cd37a5
commit
c38d9b5628
6 changed files with 65 additions and 14 deletions
|
|
@ -140,11 +140,15 @@ public class MSVC7Mangle extends GhidraScript{
|
|||
/* Generate a mangled name for a function */
|
||||
final String nameRaw = f.getName(true);
|
||||
|
||||
// Special case for main()
|
||||
if (nameRaw.equals("main")) return "_main";
|
||||
// Internal symbols like intrinsics aren't mangled
|
||||
if (nameRaw.startsWith("_")) return nameRaw;
|
||||
|
||||
// Special symbols like intrinsics aren't mangled
|
||||
if (nameRaw.startsWith("__")) return nameRaw;
|
||||
// Other special cases
|
||||
switch (nameRaw) {
|
||||
case "atexit": return "_atexit";
|
||||
case "main" : return "_main" ;
|
||||
default : {}
|
||||
}
|
||||
|
||||
final ArrayList<String> dict = new ArrayList<>();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Object,Delink?,.text,.text$XCU1,.text$XCU2,.text$x,D3D,DSOUND,MMATRIX,XGRPH,XPP,.rdata,.rdata$x,.data$CRT,.data,DOLBY
|
||||
Object,Delink?,.text,.text$XC*1,.text$XC*2,.text$x,D3D,DSOUND,MMATRIX,XGRPH,XPP,.rdata,.rdata$x,.data$CRT,.data,DOLBY
|
||||
JSRF/Core.obj,true,0x00011000-0x00013FEB,,,0x00186BA0-0x00186C14,,,,,,0x001C4390-0x001C44F9,0x001E4D20-0x001E4DAB,,0x001EB880-0x001EB933,
|
||||
JSRF/GameData.obj,true,0x00039B50-0x0003B937,0x0018AD60-0x0018AD75,0x0018C9A0-0x0018C9AA,,,,,,,0x001CA16C-0x001CA3DB,,0x001EB790-0x001EB793,0x001EFC88-0x001F7047,
|
||||
JSRF/Jet2.obj,true,0x0006F9E0-0x0006FA6F,,,0x00187710-0x00187724,,,,,,,0x001E620C-0x001E622F,,0x0022FCE0-0x0022FCE3,
|
||||
|
|
|
|||
|
Loading…
Add table
Add a link
Reference in a new issue