summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-10-04 11:52:39 -0500
committerSubv <subv2112@gmail.com>2017-10-04 12:30:33 -0500
commit3c0113632dc4fb4e55b5dad9278a5b766dcaec14 (patch)
tree5f78f0f8a334a1dbe8e407ed5ef8809241a6b639 /src/core/hle/svc.cpp
parent0cfb231e002629172337c048e8cabc8c653e34e3 (diff)
SVC: Replace GetPointer usage with ReadBlock in OutputDebugString.
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 61360bede..37eeeb860 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -619,8 +619,10 @@ static void Break(u8 break_reason) {
}
/// Used to output a message on a debug hardware unit - does nothing on a retail unit
-static void OutputDebugString(const char* string, int len) {
- LOG_DEBUG(Debug_Emulated, "%.*s", len, string);
+static void OutputDebugString(VAddr address, int len) {
+ std::vector<char> string(len);
+ Memory::ReadBlock(address, string.data(), len);
+ LOG_DEBUG(Debug_Emulated, "%.*s", len, string.data());
}
/// Get resource limit