jakibaki / hid-mitm

Sysmodule mitming the Horizon hid (human interface device) services to allow using unsupported gamepads on the nintendo switch.
GNU General Public License v2.0
102 stars 23 forks source link

Issues with building #40

Closed staringstar closed 4 years ago

staringstar commented 4 years ago

@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

staringstar commented 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.