Browse Source

added Memory::GetCharPointer to read strings from HLE functions

bunnei 12 years ago
parent
commit
d9bb4f11c6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/core/mem_map.h

+ 4 - 0
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