mirror of
https://github.com/open-goal/jak-project
synced 2026-06-27 19:02:59 -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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user