aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/mem_map.h
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-04-10 19:56:30 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-04-10 19:56:30 -0400
commitd9bb4f11c61503bd2e40d2ea9fc9795c55e48c2e (patch)
tree4076b1a29b5c40bb4dc3d3e1375c7289ab10d198 /src/core/mem_map.h
parent95e5436f41a3cffaace7c48be72373bebcaf91e4 (diff)
added Memory::GetCharPointer to read strings from HLE functions
Diffstat (limited to 'src/core/mem_map.h')
-rw-r--r--src/core/mem_map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index 1a3bd723..94469ec8 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