19 extern void* __service_ptr;
20 return __service_ptr != NULL;
35 extern u32 __apt_appid;
44 extern u32 __ctru_heap_size;
45 return __ctru_heap_size;
53 extern u32 __ctru_linear_heap_size;
54 return __ctru_linear_heap_size;
62 extern const char* __system_arglist;
63 return __system_arglist;
71 extern u32 __system_runflags;
72 return __system_runflags;
static const char * envGetSystemArgList(void)
Gets the environment argument list.
Definition: env.h:61
static u32 envGetAptAppId(void)
Gets the environment-recommended app ID to use with APT.
Definition: env.h:34
static bool envIsHomebrew(void)
Gets whether the application was launched from a homebrew environment.
Definition: env.h:18
@ RUNFLAG_APTREINIT
Reinitialize APT.
Definition: env.h:10
@ RUNFLAG_APTCHAINLOAD
Chainload APT on return.
Definition: env.h:11
@ RUNFLAG_APTWORKAROUND
Use APT workaround.
Definition: env.h:9
static u32 envGetHeapSize(void)
Gets the size of the application heap.
Definition: env.h:43
static u32 envGetSystemRunFlags(void)
Gets the environment run flags.
Definition: env.h:70
Handle envGetHandle(const char *name)
Retrieves a handle from the environment handle list.
static u32 envGetLinearHeapSize(void)
Gets the size of the linear heap.
Definition: env.h:52
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:47
u32 Handle
Resource handle.
Definition: types.h:41
uint32_t u32
32-bit unsigned integer
Definition: types.h:23