diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2025-11-27 01:26:51 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2025-11-27 01:26:51 +0100 |
| commit | deeb6f160c82bf210139321c582ea135b826acc9 (patch) | |
| tree | ff3c2ad2c6a493ceb9f3558f2039469312d9031d /Source/UnitTests/Core/PatchAllowlistTest.cpp | |
| parent | 887c68eed44949fbbac962eedff79d0a7db6d520 (diff) | |
Disable PatchAllowlistTest if USE_RETRO_ACHIEVEMENTS is OFF
This fixes a build error when `-DENABLE_TESTS=ON` and `-DUSE_RETRO_ACHIEVEMENTS=OFF` are both set together, since AchievementManager is also behind an ifdef.
Diffstat (limited to 'Source/UnitTests/Core/PatchAllowlistTest.cpp')
| -rw-r--r-- | Source/UnitTests/Core/PatchAllowlistTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/UnitTests/Core/PatchAllowlistTest.cpp b/Source/UnitTests/Core/PatchAllowlistTest.cpp index c2b6be61e6..85111fb607 100644 --- a/Source/UnitTests/Core/PatchAllowlistTest.cpp +++ b/Source/UnitTests/Core/PatchAllowlistTest.cpp @@ -1,6 +1,8 @@ // Copyright 2024 Dolphin Emulator Project // SPDX-License-Identifier: GPL-2.0-or-later +#ifdef USE_RETRO_ACHIEVEMENTS + #include <array> #include <map> #include <string> @@ -191,3 +193,5 @@ void ReadVerified(const Common::IniFile& ini, const std::string& filename, } } } + +#endif // USE_RETRO_ACHIEVEMENTS |
