From f492318e3c15e16cf572c76cef06dd2014953f20 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sun, 6 Nov 2016 01:09:44 +0100 Subject: [PATCH] The cart update pattern is only present once on NS up to 8.0 --- injector/source/patcher.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/injector/source/patcher.c b/injector/source/patcher.c index 1f33ed8..776a278 100644 --- a/injector/source/patcher.c +++ b/injector/source/patcher.c @@ -13,7 +13,11 @@ static void patchMemory(u8 *start, u32 size, const void *pattern, u32 patSize, i { u8 *found = memsearch(start, pattern, size, patSize); - if(found == NULL) svcBreak(USERBREAK_ASSERT); + if(found == NULL) + { + if(!i) svcBreak(USERBREAK_ASSERT); + break; + } memcpy(found + offset, replace, repSize);