summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2019-03-25 21:02:25 -0400
committerGravatar GitHub2019-03-25 21:02:25 -0400
commitb93a8a368f33bfdec12d130814825ec3ddda6b97 (patch)
treec7b47c20735f5311f6b088ede6148af84ed8a129
parentMerge pull request #2232 from lioncash/transfer-memory (diff)
parentcore/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked (diff)
downloadyuzu-b93a8a368f33bfdec12d130814825ec3ddda6b97.tar.gz
yuzu-b93a8a368f33bfdec12d130814825ec3ddda6b97.tar.xz
yuzu-b93a8a368f33bfdec12d130814825ec3ddda6b97.zip
Merge pull request #2288 from lioncash/linkage
core/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked
Diffstat (limited to '')
-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
423 return out; 423 return out;
424} 424}
425 425
426namespace {
426u64 MemoryReadImpl(u32 width, VAddr addr) { 427u64 MemoryReadImpl(u32 width, VAddr addr) {
427 switch (width) { 428 switch (width) {
428 case 1: 429 case 1:
@@ -457,6 +458,7 @@ void MemoryWriteImpl(u32 width, VAddr addr, u64 value) {
457 UNREACHABLE(); 458 UNREACHABLE();
458 } 459 }
459} 460}
461} // Anonymous namespace
460 462
461CheatEngine::CheatEngine(Core::System& system, std::vector<CheatList> cheats_, 463CheatEngine::CheatEngine(Core::System& system, std::vector<CheatList> cheats_,
462 const std::string& build_id, VAddr code_region_start, 464 const std::string& build_id, VAddr code_region_start,