diff --git a/injector/source/CFWInfo.h b/injector/source/CFWInfo.h index 30b4781..69bd260 100644 --- a/injector/source/CFWInfo.h +++ b/injector/source/CFWInfo.h @@ -16,4 +16,4 @@ typedef struct __attribute__((packed)) u32 config; } CFWInfo; -int svcGetCFWInfo(CFWInfo *info); \ No newline at end of file +u32 svcGetCFWInfo(CFWInfo *info); \ No newline at end of file diff --git a/source/utils.c b/source/utils.c index c5706a7..af73006 100644 --- a/source/utils.c +++ b/source/utils.c @@ -43,7 +43,7 @@ u32 waitInput(void) key = HID_PAD; //Make sure it's pressed - for(u32 i = 0x13000; i; i--) + for(u32 i = 0x13000; i > 0; i--) { if(key != HID_PAD) break; if(i == 1) pressedKey = 1;