Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
masagrator authored Nov 11, 2024
1 parent 64cba44 commit f00c727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion saltysd_core32/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Result svcGetInfoIntercept (u64 *out, u32 id0, Handle handle, u64 id1)

void SaltySDCore_PatchSVCs()
{
static u8 orig_1[] = {0x04, 0x00, 0x2D, 0xE5, 0x01, 0x00, 0x00, 0xEF, 0x01, 0x00, 0x00, 0xEF}; //PUSH {r0}; SVC #0x1; LDR r2, [sp]
static u8 orig_1[] = {0x04, 0x00, 0x2D, 0xE5, 0x01, 0x00, 0x00, 0xEF, 0x00, 0x20, 0x9D, 0xE5}; //PUSH {r0}; SVC #0x1; LDR r2, [sp]
static u8 orig_2[] = {0x04, 0x00, 0x2D, 0xE5, 0x04, 0x00, 0x9D, 0xE5, 0x08, 0x30, 0x9D, 0xE5, 0x29, 0x00, 0x00, 0xEF, 0x00, 0x30, 0x9D, 0xE5}; //PUSH {R0}; LDR r0, [sp, #4]; LDR r3, [sp, #8]; SVC 0x29; LDR r3, [sp]
static u8 orig_1_alt[] = {0x04, 0x00, 0x2D, 0xE5, 0x01, 0x00, 0x00, 0xEF}; //PUSH {r0}; SVC #0x1
static u8 orig_2_alt[] = {0x04, 0x00, 0x2D, 0xE5, 0x04, 0x00, 0x9D, 0xE5, 0x08, 0x30, 0x9D, 0xE5, 0x29, 0x00, 0x00, 0xEF}; //PUSH {R0}; LDR r0, [sp, #4]; LDR r3, [sp, #8]; SVC 0x29
Expand Down Expand Up @@ -331,6 +331,7 @@ int main(int argc, char *argv[])
svcSleepThread(i);
}
*/


__libnx_exit(0);

Expand Down

0 comments on commit f00c727

Please sign in to comment.