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.
This commit is contained in:
Joshua Vandaële 2025-11-27 01:26:51 +01:00
parent 887c68eed4
commit deeb6f160c
No known key found for this signature in database
GPG Key ID: 6BB95AF71EB0F406

View File

@ -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