From 67f6e414702cbb83a53392e1cca229875a186cea Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 13 Apr 2014 00:37:10 -0400 Subject: added a GetPointer function for reading from HLE command buffer --- src/core/hle/hle.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core/hle/hle.h') diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index 5ee90bcdc..d02948be3 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h @@ -46,6 +46,12 @@ inline void Read(T &var, const u32 addr); template inline void Write(u32 addr, const T data); +u8* GetPointer(const u32 Address); + +inline const char* GetCharPointer(const u32 address) { + return (const char *)GetPointer(address); +} + void RegisterModule(std::string name, int num_functions, const FunctionDef *func_table); void CallSyscall(u32 opcode); -- cgit v1.2.3