Fix GCC build (#1992)

Not sure why but using the static members here caused a linker error,
but they're only used in one place so I just passed them as constants.
This commit is contained in:
Ziemas
2022-10-29 21:25:21 +02:00
committed by GitHub
parent b9924e5501
commit 3b3ed9efbe
2 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -21,13 +21,13 @@ using namespace decompiler;
void FormRegressionTestJak1::SetUpTestCase() {
parser = std::make_unique<InstructionParser>();
dts = std::make_unique<DecompilerTypeSystem>(game_version);
dts = std::make_unique<DecompilerTypeSystem>(GameVersion::Jak1);
dts->parse_type_defs({"decompiler", "config", "all-types.gc"});
}
void FormRegressionTestJak2::SetUpTestCase() {
parser = std::make_unique<InstructionParser>();
dts = std::make_unique<DecompilerTypeSystem>(game_version);
dts = std::make_unique<DecompilerTypeSystem>(GameVersion::Jak2);
dts->parse_type_defs({"decompiler", "config", "jak2", "all-types.gc"});
}