Closed staringstar closed 4 years ago
Fixed by editing u64 AppletResourceUserId = appletGetAppletResourceUserId();
to u64 AppletResourceUserId; appletGetAppletResourceUserId(&AppletResourceUserId);
I guess this is due to changes in libnx where appletGetAppletResourceUserId was edited to request one parameter that is the pointer to AppletResourceUserId.
@jakibaki and @thestr4ng3r , sorry for disturbing you, Im trying to build hid-mitm after libstratosphere has been updated and im getting this error:
/hid_mitm/source/hid_custom.c:9:32: error: too few arguments to function 'appletGetAppletResourceUserId' 9 | u64 AppletResourceUserId = appletGetAppletResourceUserId(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/devkitpro/libnx/include/switch.h:54, from /hid_mitm/source/hid_custom.h:6, from /hid_mitm/source/hid_custom.c:2: /opt/devkitpro/libnx/include/switch/services/applet.h:371:8: note: declared here 371 | Result appletGetAppletResourceUserId(u64 *out); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/devkitpro/devkitA64/base_rules:18: recipe for target 'hid_custom.o' failed make[2]: *** [hid_custom.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Makefile:124: recipe for target 'build' failed make[1]: *** [build] Error 2 make[1]: Leaving directory 'hid_mitm' Makefile:10: recipe for target 'hid_mitm' failed make: *** [hid_mitm] Error 2