mirror of
https://github.com/open-goal/jak-project
synced 2026-08-01 08:27:22 -04:00
tools: add a tool to search for types based on size / type chain / fields (#1906)
Just a small simple tool that can search through `all-types` for a type based on a bunch of criteria. For example:  The results are printed to stdout, as well as output to a json file so they can be consumed by another tool (in my plans, the VSCode extension)
This commit is contained in:
@@ -106,6 +106,10 @@ tasks:
|
||||
- watchmedo shell-command --drop --patterns="*.p2s" --recursive --command='task analyze-ee-memory FILE="${watch_src_path}"' "{{.SAVESTATE_DIR}}"
|
||||
vars:
|
||||
SAVESTATE_DIR: '{{default "." .SAVESTATE_DIR}}'
|
||||
type-search:
|
||||
desc: Just an example to show it running
|
||||
cmds:
|
||||
- "{{.TYPESEARCH_BIN_RELEASE_DIR}}/type_searcher --output-path ./search-results.json --game {{.GAME}} --fields '[{\"type\":\"int16\",\"offset\":2},{\"type\":\"int16\",\"offset\":4}]'"
|
||||
# TESTS
|
||||
offline-tests:
|
||||
cmds:
|
||||
|
||||
Reference in New Issue
Block a user