Game Development Reference
In-Depth Information
• To limit the application to a particular device or devices, add the line
{ID=platform id} , and any following settings will only be applied when
run on the specified device. The platform value is the same as that used
previously, while the id is an identifier for a particular device. The format
of the id value depends on the operating system, but you can discover what
value to use for a particular device by calling s3eDeviceGetString(S3E_
DEVICE_ID) . It is also possible to provide a comma-separated list of id
values if you need the settings to apply to more than one device.
Note that both of these settings will continue to take effect until a new OS or ID value
is specified. If you wish to return to applying all the settings globally, just add {}
after your last OS- or ID-specific setting.
It is good practice to ensure that your OS- or ID-specific sections always
terminate with {} , as not doing so can lead to a major head-scratching
session when you deploy to device and find that some setting you have
just changed doesn't appear to be taking effect.
To illustrate the use of {} , let's add some settings to the "Hello World" project app.
icf file. Open the file and add the following lines to the bottom of it:
[APP]
{OS=ANDROID}
Message="Hello Android!"
{}
{OS=BADA}
Message="Hello Bada!"
{}
{OS=IPHONE}
Message="Hello iOS!"
{}
{OS=QNX}
Message="Hello BlackBerry!"
{}
{OS=WINDOWS}
Message="Hello Windows!"
{}
You should be able to see from this that we have specified a different message string
for each different platform type that we wish to support.
 
Search WWH ::




Custom Search