mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-04-07 04:50:23 +03:00
Strings in the .rdata portion of the Smilebit in-house library code suggest that this was its name, with its contents having names beginning with an M (whence MMATRIX, for example).
22 lines
607 B
Bash
Executable file
22 lines
607 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="
|
|
Std.hpp
|
|
XDK/Win32.h
|
|
XDK/D3D.h
|
|
MUSASHI/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
|