DATA := data
INCLUDES := include
+APP_TITLE := Head tracking demo
+APP_DESCRIPTION := This is a small demo app for the New 3DS head tracking.
+APP_AUTHOR := yellows8
+
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
{
if(srvGetServiceHandle(&amHandle, "am:net") == 0)
return (Result)0;
- else
- return srvGetServiceHandle(&amHandle, "am:u");
+ else if(srvGetServiceHandle(&amHandle, "am:u") == 0)
+ return (Result)0;
+ else if(srvGetServiceHandle(&amHandle, "am:sys") == 0)
+ return (Result)0;
+ else return srvGetServiceHandle(&amHandle, "am:app");
}
Result amExit()
extern service_list_t* __service_ptr;
-static Handle g_srv_handle = 0;
+// not static so that apps can actually access it if need be
+Handle g_srv_handle = 0;
static int __name_cmp(const char* a, const char* b) {