Typed this for ~780 more methods whose ECX reads fit their class's confirmed fields; Sprite/Color = ANM2/ColorMod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
76ef4d7834
commit
cbb2f465ec
5 files changed
+62
-6
No files matched your search
@@ -19,7 +19,8 @@ apply_db() { # db names -> struct types (zhl + db fields)
|
||||
P headers.py --merged "$D/build_fields.tsv" "$D/src/structs.hpp" "$D/zhl_fields.tsv" "$D/lua_fields.tsv" "$D/db/fields.tsv" # later rows win, "-" deletes
|
||||
echo '#include "structs.hpp"' | g++ -std=c++17 -fsyntax-only -I"$D/src" -x c++ - \
|
||||
|| echo "src/structs.hpp does not compile: a db/fields.tsv offset contradicts another" >&2
|
||||
G -process isaac-ng.exe -noanalysis -postScript ApplyTypes.java "$D/build_fields.tsv"
|
||||
P this_types.py "$D/dump/all.c" "$D/build_fields.tsv" "$D/build_this.tsv"
|
||||
G -process isaac-ng.exe -noanalysis -postScript ApplyTypes.java "$D/build_fields.tsv" "$D/build_this.tsv"
|
||||
G -process isaac-ng.exe -noanalysis -postScript ApplyProtos.java "$D/db" "$D/repentogon/libzhl/functions" # only where RET n agrees
|
||||
G -process isaac-ng.exe -noanalysis -postScript ApplyLocals.java "$D/db/locals.tsv" # after types: names refer to that decompile
|
||||
}
|
||||
@@ -47,7 +48,7 @@ if [ "$1" = --db ]; then
|
||||
awk -F'\t' -v a="$(printf '%08x' $((16#${A#0x})))" '$1 == a "" {print $2}' "$D/dump/functions.tsv"; done) | sort -u | sed 's/[][().*+?^$|]/\\&/g' | paste -sd'|'))\$"
|
||||
DECOMP_TIMEOUT=900 "$D/decompile.sh" --live "$RX" 100000 | awk -v d="$D" '/^\/\/@@ /{f=d "/retry_" $2 ".c"} {print > f}'
|
||||
for F in "$D"/retry_*.c; do P splice.py "$D/dump/all.c" "$F" || true; done
|
||||
command rm -f "$D"/retry_*.c "$D/build_fields.tsv"
|
||||
command rm -f "$D"/retry_*.c "$D/build_fields.tsv" "$D/build_this.tsv"
|
||||
P apply_db.py "$D/db/names.tsv" "$D/dump"; exit
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user