Browse Source
Merge pull request #2288 from lioncash/linkage
core/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
src/core/file_sys/cheat_engine.cpp
|
|
@ -423,6 +423,7 @@ std::array<u8, 16> TextCheatParser::ParseSingleLineCheat(const std::string& line |
|
|
return out; |
|
|
return out; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
namespace { |
|
|
u64 MemoryReadImpl(u32 width, VAddr addr) { |
|
|
u64 MemoryReadImpl(u32 width, VAddr addr) { |
|
|
switch (width) { |
|
|
switch (width) { |
|
|
case 1: |
|
|
case 1: |
|
|
@ -457,6 +458,7 @@ void MemoryWriteImpl(u32 width, VAddr addr, u64 value) { |
|
|
UNREACHABLE(); |
|
|
UNREACHABLE(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} // Anonymous namespace
|
|
|
|
|
|
|
|
|
CheatEngine::CheatEngine(Core::System& system, std::vector<CheatList> cheats_, |
|
|
CheatEngine::CheatEngine(Core::System& system, std::vector<CheatList> cheats_, |
|
|
const std::string& build_id, VAddr code_region_start, |
|
|
const std::string& build_id, VAddr code_region_start, |
|
|
|