diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-13 06:37:10 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-13 06:37:10 +0200 |
commit | 67f6e414702cbb83a53392e1cca229875a186cea (patch) | |
tree | a3023c63aa8a0cc9c993bdc066c06abb4e91de87 /src/core/hle/hle.cpp | |
parent | fixed hw write declarations to not be const (diff) | |
download | yuzu-67f6e414702cbb83a53392e1cca229875a186cea.tar yuzu-67f6e414702cbb83a53392e1cca229875a186cea.tar.gz yuzu-67f6e414702cbb83a53392e1cca229875a186cea.tar.bz2 yuzu-67f6e414702cbb83a53392e1cca229875a186cea.tar.lz yuzu-67f6e414702cbb83a53392e1cca229875a186cea.tar.xz yuzu-67f6e414702cbb83a53392e1cca229875a186cea.tar.zst yuzu-67f6e414702cbb83a53392e1cca229875a186cea.zip |
Diffstat (limited to '')
-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) { } } +u8 *GetPointer(const u32 addr) { + if (addr >= HLE::CMD_BUFFER_ADDR && addr < HLE::CMD_BUFFER_ADDR_END) { + return g_command_buffer + (addr & CMD_BUFFER_MASK); + } else { + ERROR_LOG(HLE, "unknown pointer from address %08X", addr); + } +} + // Explicitly instantiate template functions because we aren't defining this in the header: template void Read<u64>(u64 &var, const u32 addr); |