summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-25 21:02:25 -0400
committerGitHub <noreply@github.com>2019-03-25 21:02:25 -0400
commitb93a8a368f33bfdec12d130814825ec3ddda6b97 (patch)
treec7b47c20735f5311f6b088ede6148af84ed8a129 /src
parent3f74518e19331f1344960ae522c7439446febcd0 (diff)
parentb26481c94b3d12a4d3bf5e33dfadb87522bc3cff (diff)
Merge pull request #2288 from lioncash/linkage
core/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/cheat_engine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/file_sys/cheat_engine.cpp b/src/core/file_sys/cheat_engine.cpp
index 247fbc864..b06c2f20a 100644
--- a/src/core/file_sys/cheat_engine.cpp
+++ b/src/core/file_sys/cheat_engine.cpp
@@ -423,6 +423,7 @@ std::array<u8, 16> TextCheatParser::ParseSingleLineCheat(const std::string& line
return out;
}
+namespace {
u64 MemoryReadImpl(u32 width, VAddr addr) {
switch (width) {
case 1:
@@ -457,6 +458,7 @@ void MemoryWriteImpl(u32 width, VAddr addr, u64 value) {
UNREACHABLE();
}
}
+} // Anonymous namespace
CheatEngine::CheatEngine(Core::System& system, std::vector<CheatList> cheats_,
const std::string& build_id, VAddr code_region_start,