Browse Source

added Memory::GetCharPointer to read strings from HLE functions

bunnei 12 năm trước cách đây
mục cha
commit
d9bb4f11c6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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