Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

added Memory::GetCharPointer to read strings from HLE functions

bunneid9bb4f11c615
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