VERY experimental Nintendo Switch 2 emulator
C++
svc: Do nothing if svcOutputDebugString() is given a length of zero
Lioncash4b9e65a70cde
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cppindex 07a6c40144..0b2a7e3cb7 100644--- a/src/core/hle/kernel/svc.cpp+++ b/src/core/hle/kernel/svc.cpp@@ -274,6 +274,10 @@ static void Break(u64 reason, u64 info1, u64 info2) {/// Used to output a message on a debug hardware unit - does nothing on a retail unitstatic void OutputDebugString(VAddr address, u64 len) {+ if (len == 0) {+ return;+ }+std::string str(len, '\0');Memory::ReadBlock(address, str.data(), str.size());LOG_DEBUG(Debug_Emulated, "{}", str);