From deeb6f160c82bf210139321c582ea135b826acc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Vanda=C3=ABle?= Date: Thu, 27 Nov 2025 01:26:51 +0100 Subject: [PATCH] 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. --- Source/UnitTests/Core/PatchAllowlistTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/UnitTests/Core/PatchAllowlistTest.cpp b/Source/UnitTests/Core/PatchAllowlistTest.cpp index c2b6be61e60..85111fb6079 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 #include #include @@ -191,3 +193,5 @@ void ReadVerified(const Common::IniFile& ini, const std::string& filename, } } } + +#endif // USE_RETRO_ACHIEVEMENTS