The cart update pattern is only present once on NS up to 8.0

This commit is contained in:
Aurora 2016-11-06 01:09:44 +01:00
parent f7e570383a
commit f492318e3c

View File

@ -13,7 +13,11 @@ static void patchMemory(u8 *start, u32 size, const void *pattern, u32 patSize, i
{ {
u8 *found = memsearch(start, pattern, size, patSize); 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); memcpy(found + offset, replace, repSize);