mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-02-20 10:17:03 +03:00
Add data type import for Ghidra
This commit is contained in:
parent
30f8a5879e
commit
63002e0f08
9 changed files with 233 additions and 31 deletions
22
ghidra/make_header.sh
Executable file
22
ghidra/make_header.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh -eu
|
||||
# Merges all header files in the decompilation into a C header file called
|
||||
# jsrf.h for importing into Ghidra
|
||||
|
||||
# Create output file
|
||||
printf '%s\n' '// Automatically generated mass header file for Ghidra' > jsrf.h
|
||||
|
||||
# Figuring out include order programmatically is awful, so we'll have to add
|
||||
# all the headers here by hand in an order that functions properly
|
||||
HEADERS="
|
||||
Std.hpp
|
||||
XDK/Win32.hpp
|
||||
XDK/D3D.hpp
|
||||
Smilebit/MMatrix.hpp
|
||||
JSRF/Core.hpp
|
||||
JSRF/GameData.hpp
|
||||
"
|
||||
|
||||
# Process each header file into jsrf.h
|
||||
for header in $HEADERS; do
|
||||
awk -f headerconvert.awk "../decompile/src/$header" >> jsrf.h
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue