3DS_Quick_Reboot
3DS_Quick_Reboot copied to clipboard
Can't compile with latest ctrulib build
Error output:
`main.c
arm-none-eabi-gcc -MMD -MP -MF /d/Z_Testing/3DS_Quick_Reboot/build/main.d -g -Wa ll -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune= mpcore -mfloat-abi=hard -I/d/Z_Testing/3DS_Quick_Reboot/include -I/c/devkitPro/l ibctru/include -I/d/Z_Testing/3DS_Quick_Reboot/build -DARM11 -D_3DS -c /d/Z_Test ing/3DS_Quick_Reboot/source/main.c -o main.o
d:/Z_Testing/3DS_Quick_Reboot/source/main.c: In function 'main':
d:/Z_Testing/3DS_Quick_Reboot/source/main.c:12:2: error: too many arguments to f unction 'hidInit' hidInit(NULL); ^ In file included from c:/devkitPro/libctru/include/3ds.h:40:0, from d:/Z_Testing/3DS_Quick_Reboot/source/main.c:1: c:/devkitPro/libctru/include/3ds/services/hid.h:89:8: note: declared here Result hidInit(void); ^
d:/Z_Testing/3DS_Quick_Reboot/source/main.c:30:4: error: too many arguments to f unction 'APT_HardwareResetAsync' APT_HardwareResetAsync(NULL); ^ In file included from c:/devkitPro/libctru/include/3ds.h:31:0, from d:/Z_Testing/3DS_Quick_Reboot/source/main.c:1: c:/devkitPro/libctru/include/3ds/services/apt.h:198:8: note: declared here Result APT_HardwareResetAsync(void); ^ make[1]: *** [main.o] Error 1
make: *** [build] Error 2`
Seconding this... Idk how to change that code to work again, though.
easy, take the NULLs out of the function call (since it's expecting nothing, with the (void) in the function declaration, and NULL is essentially passing 0 to it)