The cart update pattern is only present once on NS up to 8.0
This commit is contained in:
parent
f7e570383a
commit
f492318e3c
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user