citra-emu
/
citra-canary
Archived
1
0
Fork 0

Fix OutputDebugString syscall

This commit is contained in:
Michael Theall 2017-04-01 04:09:39 -05:00
parent eb8a7a92c1
commit 31f9c1ab5d
2 changed files with 4 additions and 4 deletions

View File

@ -256,9 +256,9 @@ void Wrap() {
func(((s64)PARAM(1) << 32) | PARAM(0)); func(((s64)PARAM(1) << 32) | PARAM(0));
} }
template <void func(const char*)> template <void func(const char*, int len)>
void Wrap() { void Wrap() {
func((char*)Memory::GetPointer(PARAM(0))); func((char*)Memory::GetPointer(PARAM(0)), PARAM(1));
} }
template <void func(u8)> template <void func(u8)>

View File

@ -467,8 +467,8 @@ static void Break(u8 break_reason) {
} }
/// Used to output a message on a debug hardware unit - does nothing on a retail unit /// Used to output a message on a debug hardware unit - does nothing on a retail unit
static void OutputDebugString(const char* string) { static void OutputDebugString(const char* string, int len) {
LOG_DEBUG(Debug_Emulated, "%s", string); LOG_DEBUG(Debug_Emulated, "%.*s", len, string);
} }
/// Get resource limit /// Get resource limit