Fix cheats always enabled without USE_RETRO_ACHIEVEMENTS

This commit is contained in:
Craig Carnell 2025-11-11 21:11:24 +00:00
parent 731849c239
commit f1fb550bf1

View File

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