diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-09-22 00:13:10 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-22 03:45:05 +0200 |
commit | 682174b1123c5721b12eaf8472da46251fea3b1d (patch) | |
tree | 1c368bfb5bb3ff731f3651c833ff8c883d91c2c9 /src/core/memory/cheat_engine.cpp | |
parent | core: Initialize cheats after load to avoid VMManager crash (diff) | |
download | yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.tar yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.tar.gz yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.tar.bz2 yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.tar.lz yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.tar.xz yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.tar.zst yuzu-682174b1123c5721b12eaf8472da46251fea3b1d.zip |
Diffstat (limited to 'src/core/memory/cheat_engine.cpp')
-rw-r--r-- | src/core/memory/cheat_engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index ea5c76fc0..b56cb0627 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp @@ -102,7 +102,7 @@ std::vector<CheatEntry> TextCheatParser::Parse(const Core::System& system, std::optional<u64> current_entry = std::nullopt; for (std::size_t i = 0; i < data.size(); ++i) { - if (std::isspace(data[i])) { + if (::isspace(data[i])) { continue; } @@ -143,7 +143,7 @@ std::vector<CheatEntry> TextCheatParser::Parse(const Core::System& system, '\0'; i += name.length() + 1; - } else if (std::isxdigit(data[i])) { + } else if (::isxdigit(data[i])) { if (!current_entry || out[*current_entry].definition.num_opcodes >= out[*current_entry].definition.opcodes.size()) { return {}; @@ -188,7 +188,7 @@ CheatEngine::~CheatEngine() { void CheatEngine::Initialize() { event = core_timing.RegisterEvent( - "CheatEngine::FrameCallback::" + Common::HexArrayToString(metadata.main_nso_build_id), + "CheatEngine::FrameCallback::" + Common::HexToString(metadata.main_nso_build_id), [this](u64 userdata, s64 cycles_late) { FrameCallback(userdata, cycles_late); }); core_timing.ScheduleEvent(CHEAT_ENGINE_TICKS, event); |