From b2df959733ee65cbf705dbfbd05761a06929a6b6 Mon Sep 17 00:00:00 2001 From: wwylele Date: Mon, 27 Jun 2016 20:42:42 +0300 Subject: Memory: add ReadCString function --- src/core/memory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/memory.h') diff --git a/src/core/memory.h b/src/core/memory.h index ae5588dee..cad845385 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -5,6 +5,7 @@ #pragma once #include +#include #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. -- cgit v1.2.3