am:sys stuff, g_serv_handle non static and qtm example label

This commit is contained in:
smea 2015-08-17 21:31:00 -07:00
parent 096bbdf401
commit 91c98308e2
3 changed files with 11 additions and 3 deletions

View File

@ -32,6 +32,10 @@ SOURCES := source
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
#---------------------------------------------------------------------------------

View File

@ -12,8 +12,11 @@ Result amInit()
{
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()

View File

@ -30,7 +30,8 @@ typedef struct {
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) {