From b26481c94b3d12a4d3bf5e33dfadb87522bc3cff Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 24 Mar 2019 18:34:39 -0400 Subject: core/cheat_engine: Make MemoryReadImpl and MemoryWriteImpl internally linked These don't need to be visible outside of the translation unit, so they can be enclosed within an anonymous namespace. --- src/core/file_sys/cheat_engine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/file_sys') 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 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 cheats_, const std::string& build_id, VAddr code_region_start, -- cgit v1.2.3