From cb9d682f652e210824d5ccb3a94468dba207978e Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Mon, 6 Feb 2023 17:44:12 +0000 Subject: [PATCH] Fix svcGetDmaState Kernel and official app stubs are buggy, as they read 4 bytes when the enum is only one byte (meaning 3 garbage bytes). --- libctru/source/svc.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libctru/source/svc.s b/libctru/source/svc.s index b1e4bf8..63b8c28 100644 --- a/libctru/source/svc.s +++ b/libctru/source/svc.s @@ -510,7 +510,7 @@ SVC_BEGIN svcGetDmaState str r0, [sp, #-4]! svc 0x57 ldr r3, [sp], #4 - str r1, [r3] + strb r1, [r3] bx lr SVC_END