diff options
author | wwylele <wwylele@gmail.com> | 2016-06-27 20:42:42 +0300 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-08-27 21:38:06 +0800 |
commit | b2df959733ee65cbf705dbfbd05761a06929a6b6 (patch) | |
tree | 90327dc0e58493de455fa4a4fdd4599ee8c6477a /src/core/memory.h | |
parent | b879d8c31b12662e787f08c8d8ab05115db8cc45 (diff) |
Memory: add ReadCString function
Diffstat (limited to 'src/core/memory.h')
-rw-r--r-- | src/core/memory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index ae5588dee9..cad845385c 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -5,6 +5,7 @@ #pragma once #include <cstddef> +#include <string> #include "common/common_types.h" @@ -130,6 +131,8 @@ void CopyBlock(VAddr dest_addr, VAddr src_addr, size_t size); u8* GetPointer(VAddr virtual_address); +std::string ReadCString(VAddr virtual_address, std::size_t max_length); + /** * Converts a virtual address inside a region with 1:1 mapping to physical memory to a physical * address. This should be used by services to translate addresses for use by the hardware. |