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:

![image](https://user-images.githubusercontent.com/13153231/192043561-181e5c5d-d5b1-41a9-8891-5cc3ed1a0efa.png)

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:
Tyler Wilding
2022-09-24 16:04:52 -04:00
committed by GitHub
parent 7dd8053697
commit 332f0b2f2b
13 changed files with 260 additions and 6 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
#include "common/type_system/TypeSystem.h"
#include "common/util/Assert.h"
#include "common/util/FileUtil.h"
#include <common/util/unicode_util.h>
#include "common/util/unicode_util.h"
#include "decompiler/util/DecompilerTypeSystem.h"
@@ -634,7 +634,7 @@ int main(int argc, char** argv) {
decompiler::DecompilerTypeSystem dts(game_version);
// TODO - this could be better
// TODO - this could be better (have a `jak1` folder)
if (game_version == GameVersion::Jak1) {
dts.parse_type_defs({"decompiler", "config", "all-types.gc"});
} else if (game_version == GameVersion::Jak2) {