find.sh vtable CLASS: vtable slots from the exe's RTTI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0a615743fc
commit
3e43a4ced2
3 files changed
+53
-1
No files matched your search
@@ -14,6 +14,7 @@
|
||||
# lua REGEX Lua API bindings (class, member, target function or field+offset)
|
||||
# val ADDR constant at DAT_ADDR as int/float/double/string (decompiler leaves floats as DAT_)
|
||||
# field REGEX known struct field offsets (REPENTOGON zhl struct defs)
|
||||
# vtable CLASS vtable slots of an RTTI class, read from the exe (e.g. Weapon_Knife, Entity_Player)
|
||||
D="$(cd "$(dirname "$0")" && pwd)"; T="$D/dump"
|
||||
MODE="$1"; ARG="$2"
|
||||
[ -z "$ARG" ] && { sed -n '2,17p' "$0"; exit 1; }
|
||||
@@ -40,5 +41,6 @@ case "$MODE" in
|
||||
lua) grep -P -- "$ARG" "$T/lua_bindings.tsv" ;;
|
||||
val) python3 -I "$D/scripts/read_value.py" "$D/bin/isaac-ng.exe" "${ARG#DAT_}" ;;
|
||||
field) grep -P -- "$ARG" "$T/zhl_fields.tsv" ;;
|
||||
vtable) python3 -I "$D/scripts/vtable.py" "$D/bin/isaac-ng.exe" "$T/functions.tsv" "$ARG" "${3:-40}" ;;
|
||||
*) sed -n '2,17p' "$0"; exit 1 ;;
|
||||
esac
|
||||
Reference in new issue
Block a user