diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-10 19:56:30 -0400 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-10 19:56:30 -0400 |
commit | d9bb4f11c61503bd2e40d2ea9fc9795c55e48c2e (patch) | |
tree | 4076b1a29b5c40bb4dc3d3e1375c7289ab10d198 /src | |
parent | 95e5436f41a3cffaace7c48be72373bebcaf91e4 (diff) |
added Memory::GetCharPointer to read strings from HLE functions
Diffstat (limited to 'src')
-rw-r--r-- | src/core/mem_map.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h index 1a3bd7234e..94469ec8c6 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h @@ -70,4 +70,8 @@ void Write32(const u32 addr, const u32 data); u8* GetPointer(const u32 Address); +inline const char* GetCharPointer(const u32 address) { + return (const char *)GetPointer(address); +} + } // namespace |