Port Enable Cheats to the new config system

This commit is contained in:
JosJuice
2021-08-11 13:52:08 +02:00
parent 67c06cfc55
commit fa0525f826
9 changed files with 19 additions and 20 deletions

View File

@ -8,7 +8,9 @@
#include <map>
#include "Common/CommonTypes.h"
#include "Common/Config/Config.h"
#include "Core/Config/MainSettings.h"
#include "Core/ConfigManager.h"
#include "Core/GeckoCode.h"
#include "Core/HLE/HLE_Misc.h"
@ -85,7 +87,7 @@ void PatchFixedFunctions()
// HLE jump to loader (homebrew). Disabled when Gecko is active as it interferes with the code
// handler
if (!SConfig::GetInstance().bEnableCheats)
if (!Config::Get(Config::MAIN_ENABLE_CHEATS))
{
Patch(0x80001800, "HBReload");
Memory::CopyToEmu(0x00001804, "STUBHAXX", 8);