From d9bb4f11c61503bd2e40d2ea9fc9795c55e48c2e Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 10 Apr 2014 19:56:30 -0400 Subject: [PATCH] added Memory::GetCharPointer to read strings from HLE functions --- src/core/mem_map.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/mem_map.h b/src/core/mem_map.h index 1a3bd7234..94469ec8c 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