Files
archived-touchHLE/dev-scripts/log-unimplemented.sh
abnormalmaps 4e2f810f78 Add --dump=linking-info flag
Adds the --dump=linking-info flag, which dumps the classes, selectors,
and functions required by the binary, along with info about the
symbol as JSON to stdout.

Change-Id: I87e6db91fc68aecaa8dd3c516676aa81c2c34209
2025-08-14 17:20:09 +00:00

17 lines
694 B
Bash
Executable File

#!/bin/sh
# No set -e, since touchHLE can exit with an error
if [[ -z "$1" ]]
then
echo 'Usage: ./log_unimplemented.sh [name of app to check]'
exit 1
else
cargo run -- --dump=linking-info "$1"
cat DUMP.txt | jq --slurp '{
"unimplemented_classes": ([.[] | select(.object == "classes") | .classes[] | select(.class_type == "unimplemented") | .name] | sort),
"unused_selectors": ([.[] | select(.object == "selectors") | .selectors[] | select(.instance_implementations or .class_implementations | not) | .selector] | sort),
"unlinked_symbols": ([.[] | select(.object == "lazy_symbols") | .symbols[] | select(.linked_to | not) | .symbol] | sort),
}'
fi