diff --git a/Source/Core/Core/AchievementManager.h b/Source/Core/Core/AchievementManager.h index 225bcb1ddb..1d2245c24c 100644 --- a/Source/Core/Core/AchievementManager.h +++ b/Source/Core/Core/AchievementManager.h @@ -309,22 +309,14 @@ private: #include #include "Common/CommonTypes.h" - -namespace ActionReplay -{ -struct ARCode; -} +#include "Core/ActionReplay.h" +#include "Core/GeckoCode.h" namespace DiscIO { class Volume; } -namespace Gecko -{ -class GeckoCode; -} - class AchievementManager { public: @@ -339,13 +331,13 @@ public: constexpr bool ShouldGeckoCodeBeActivated(const Gecko::GeckoCode& code, const std::string& game_id, u16 revision) { - return true; + return code.enabled; } constexpr bool ShouldARCodeBeActivated(const ActionReplay::ARCode& code, const std::string& game_id, u16 revision) { - return true; + return code.enabled; } constexpr void LoadGame(const DiscIO::Volume*) {}