Files
skate-3-rust-engine/tools/recomp-code-search/grepfn.sh
T
Hails 418dcecd41 Audio: interim cue tables retired, native water splash, published tools
- The interim cue tables and their opt-outs are gone; the native runtime is the only audio path. Old
  settings/audio.json files still load ("interim" / "native" ignored). Missing native data logs an error
  instead of falling back.
- Water splash from retail's mechanism (SFXObj_OffBoard start / update): Skate_Collisions 1187 / 1197 once
  per water stay, 1198 when the board is in water.
- The random interim riding bed is removed; riding collision and cloth sounds compared with the recomp
  (doc 11). Native output otherwise byte-identical (13 scenarios + 5 sessions).
- Published tools under tools/ (one folder per tool with a README; the recomp ones labelled for use with the
  research hooks), doc 14 and PR plan bucket L.
- Docs: doc 11 (retirement, bail density measured against the recomp, collision posts), doc 13 (usage guide).
2026-10-03 10:20:08 -06:00

9 lines
570 B
Bash

#!/bin/sh
# usage: RECOMP_GENERATED=<dir> grepfn.sh 'ERE' -> prints "sub_XXXX: asm line" for every asm line matching (grep -E syntax)
# Needs your own skate3recomp build: RECOMP_GENERATED = its generated/ folder (the code generator's output).
: "${RECOMP_GENERATED:?set RECOMP_GENERATED to your skate3recomp generated/ folder}"
cd "$RECOMP_GENERATED" || exit 1
grep -n -E "DEFINE_REX_FUNC\(sub_|^ // .*($1)" skate3_recomp.*.cpp | awk '
/DEFINE_REX_FUNC\(sub_/ { match($0,/sub_[0-9A-F]+/); f=substr($0,RSTART,RLENGTH); next }
{ sub(/^[^\t]*\t\/\/ /,""); print f": "$0 }'