diff options
| author | 2019-03-25 21:02:25 -0400 | |
|---|---|---|
| committer | 2019-03-25 21:02:25 -0400 | |
| commit | b93a8a368f33bfdec12d130814825ec3ddda6b97 (patch) | |
| tree | c7b47c20735f5311f6b088ede6148af84ed8a129 /src | |
| parent | Merge pull request #2232 from lioncash/transfer-memory (diff) | |
| parent | core/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked (diff) | |
| download | yuzu-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.cpp | 2 |
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 | ||
| 426 | namespace { | ||
| 426 | u64 MemoryReadImpl(u32 width, VAddr addr) { | 427 | u64 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 | ||
| 461 | CheatEngine::CheatEngine(Core::System& system, std::vector<CheatList> cheats_, | 463 | CheatEngine::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, |