diff --git a/injector/source/CFWInfo.h b/injector/source/CFWInfo.h index cc9eb6b..30b4781 100644 --- a/injector/source/CFWInfo.h +++ b/injector/source/CFWInfo.h @@ -16,4 +16,4 @@ typedef struct __attribute__((packed)) u32 config; } CFWInfo; -void svcGetCFWInfo(CFWInfo *info); \ No newline at end of file +int svcGetCFWInfo(CFWInfo *info); \ No newline at end of file diff --git a/patches/svcGetCFWInfo.s b/patches/svcGetCFWInfo.s index 3950ead..fb2a079 100644 --- a/patches/svcGetCFWInfo.s +++ b/patches/svcGetCFWInfo.s @@ -34,6 +34,7 @@ cmp r0, r2 blo loop + mov r0, #0 bx lr .pool