sotn-decomp/.gitignore
bismurphy be98e5a383
Add data_tracer.py (#301)
This is the script demonstrated in Discord, with both graphical and
command line interfaces.
I won't say it's particularly good Python, but it gets the job done for
now :)

This traverses all functions in /asm (after doing `make force_extract`),
and logs all functions called by every function. This takes several
seconds, so the result of this traversing is saved to a text file called
sotn_calltree.txt and used for future runs. I've added this to the
gitignore. As mentioned in the comments at the top of the Python file,
this file can be deleted if the user would like to re-generate the call
tree (mainly if symbols have been renamed, which would change the
generated assembly files).

This is very much meant to be a first draft; it may have bugs and it
definitely has ugly, low-quality code (I had to do a whole bunch of
special cases for assembly that calls functions indirectly, for
example), but at least for now this could be a useful starting point.
Hopefully myself or others will make improvements into the future!
2023-07-01 15:06:30 +01:00

43 lines
719 B
Plaintext

main.exe
DRA.BIN
BIN/ARC_F.BIN
BIN/RIC.BIN
ST/
ctx.c
ctx.c.m2c
*.ld
*auto.*.txt
generated.symbols.*.txt
__pycache__
asm/*/*/*.s
asm/*/*/data/*.s
asm/*/*/nonmatchings/*.s
asm/*/*/nonmatchings/*/*.s
asm/*/*/nonmatchings/*/*/*.s
asm/*/servant/*/data/*.s
asm/*/servant/*/nonmatchings/*.s
asm/*/servant/*/nonmatchings/*/*.s
asm/*/servant/*/nonmatchings/*/*/*.s
asm/*/st/*/data/*.s
asm/*/st/*/nonmatchings/*.s
asm/*/st/*/nonmatchings/*/*.s
asm/*/st/*/nonmatchings/*/*/*.s
assets/
bin/
build/
expected/
disks/
.vscode/settings.json
tools/go
tools/sotn_calltree.txt
tools/saturn_toolchain/GCCSH
config/saturn/game_syms.txt
config/saturn/stage_02_syms.txt
config/saturn/t_bat_syms.txt
config/saturn/zero_syms.txt
asm/saturn