mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-05-23 01:47:20 +03:00
One symbol, fSequenceMethods, won't match up automatically in objdiff until the mangling script is updated to handle method pointers properly.
24 lines
658 B
Bash
Executable file
24 lines
658 B
Bash
Executable file
#!/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="
|
|
XDK/CRT/stddef.h
|
|
XDK/Win32.h
|
|
XDK/CRT/ehdata.h
|
|
XDK/D3D.h
|
|
MUSASHI/MMatrix.hpp
|
|
JSRF/Action.hpp
|
|
JSRF/ActSequence.hpp
|
|
JSRF/SaveData.hpp
|
|
"
|
|
|
|
# Process each header file into jsrf.h
|
|
for header in $HEADERS; do
|
|
awk -f headerconvert.awk "../decompile/src/$header" >> jsrf.h
|
|
done
|