diff options
Diffstat (limited to 'src/core/hle/hle.cpp')
| -rw-r--r-- | src/core/hle/hle.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index 51432dc87..a4ab61c0c 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -37,6 +37,14 @@ inline void Write(u32 addr, const T data) { | |||
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | u8 *GetPointer(const u32 addr) { | ||
| 41 | if (addr >= HLE::CMD_BUFFER_ADDR && addr < HLE::CMD_BUFFER_ADDR_END) { | ||
| 42 | return g_command_buffer + (addr & CMD_BUFFER_MASK); | ||
| 43 | } else { | ||
| 44 | ERROR_LOG(HLE, "unknown pointer from address %08X", addr); | ||
| 45 | } | ||
| 46 | } | ||
| 47 | |||
| 40 | // Explicitly instantiate template functions because we aren't defining this in the header: | 48 | // Explicitly instantiate template functions because we aren't defining this in the header: |
| 41 | 49 | ||
| 42 | template void Read<u64>(u64 &var, const u32 addr); | 50 | template void Read<u64>(u64 &var, const u32 addr); |