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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

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"});
}

View file

@ -100,14 +100,10 @@ class FormRegressionTest : public ::testing::TestWithParam<GameVersion> {
class FormRegressionTestJak1 : public FormRegressionTest {
protected:
static const GameVersion game_version = GameVersion::Jak1;
static void SetUpTestCase();
};
class FormRegressionTestJak2 : public FormRegressionTest {
protected:
static const GameVersion game_version = GameVersion::Jak2;
static void SetUpTestCase();
};