From 674a91db8cdacf90951f3a467bf901feb39df6d7 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 28 Jul 2018 21:06:50 -0700 Subject: [PATCH] Loader/ips: Fix more bugs, now works with simple test on hw. --- stratosphere/loader/source/ldr_patcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/loader/source/ldr_patcher.cpp b/stratosphere/loader/source/ldr_patcher.cpp index e50086d8a..67520e425 100644 --- a/stratosphere/loader/source/ldr_patcher.cpp +++ b/stratosphere/loader/source/ldr_patcher.cpp @@ -19,9 +19,9 @@ static inline u8 HexNybbleToU8(const char nybble) { if ('0' <= nybble && nybble <= '9') { return nybble - '0'; } else if ('a' <= nybble && nybble <= 'f') { - return nybble - 'a'; + return nybble - 'a' + 0xa; } else { - return nybble - 'A'; + return nybble - 'A' + 0xA; } }