summaryrefslogtreecommitdiffstats
path: root/src/core/memory/cheat_engine.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-09-22 00:13:10 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-22 03:45:05 +0200
commit682174b1123c5721b12eaf8472da46251fea3b1d (patch)
tree1c368bfb5bb3ff731f3651c833ff8c883d91c2c9 /src/core/memory/cheat_engine.cpp
parentcore: Initialize cheats after load to avoid VMManager crash (diff)
downloadyuzu-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.cpp6
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);