JSRF-Decompilation/ghidra/make_header.sh
KeybadeBlox c020c2e247 jsrf.h scalar deleting destructors return void *
They previously returned a pointer to the class type, but this isn't
accurate to the signature indicated by MSVC's name mangling.
2026-02-18 18:15:25 -05:00

22 lines
608 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
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