Game Development Reference
In-Depth Information
Here's an example of a resbuildstyles.itx file that will be used for discussion in
the following sections:
CIwResBuildStyle
{
name "default"
platform "GLES1"
}
CIwResBuildStyle
{
name "pvrtc"
addReadPrefix "data-pvrtc"
platform "IMG_MBX"
}
CIwResBuildStyle
{
name "atitc"
addReadPrefix "data-atitc"
platform "ATI_IMAGEON"
}
Adding extra resource directories
The addReadPrefix parameter allows us to add a new search path that will
be checked whenever we attempt to load a file of any kind. A directory name
is specified; this must be a subdirectory within the project's data directory.
If you want to add more than one extra search directory, just include further
addReadPrefix entries.
Whenever we try to open a file, Marmalade will first look in the list of extra
directories specified by the build style in the order they were specified. If the
requested file is found in one of these directories, it will be loaded from there;
otherwise the resource manager will revert to looking in the data directory.
Supported build style platforms
The platform field of a CIwResBuildStyle instance can take one of the
following values:
 
Search WWH ::




Custom Search