ENV_GetType

Syntax

#include <nitro/env.h>
u32 ENV_GetType( const char* name );
  

Arguments

name Pointer to the resource name. If this string begins with "." (period), the class name is considered to be omitted, and the current class is filled in before that period.

Return Values

The resource type. It is ENV_RESTYPE_xxx.

Description

Gets the resource type from the resource name.

The resource type is determined based on how the resource was defined.

Return Values Resource Type
ENV_RESTYPE_NONE If the specified resource does not exist:
ENV_RESTYPE_STRING A string resource defined with ENV_STRING.
ENV_RESTYPE_BINARY Binary resource defined with ENV_BINARY.
ENV_RESTYPE_S8 An s8 value resource defined with ENV_S8.
ENV_RESTYPE_U8 A u8 value resource defined with ENV_U8.
ENV_RESTYPE_S16 An s16 value resource defined with ENV_S16.
ENV_RESTYPE_U16 A u16 value resource defined with ENV_U16.
ENV_RESTYPE_S32 An s32 value resource defined with ENV_S32.
ENV_RESTYPE_U32 A u32 value resource defined with ENV_U32.
ENV_RESTYPE_S64 An s64 value resource defined with ENV_S64.
ENV_RESTYPE_U64 A u64 value resource defined with ENV_U64.
ENV_RESTYPE_BOOL A BOOL value resource defined with ENV_BOOL.

See Also

ENV_Init
ENV_Get*
ENV_GetSize
ENV_SetClass

Revision History

2005/08/16 Initial version.


CONFIDENTIAL