Game Development Community

Is it possible to automatically only include one of 2 files when they have the same name but is in different file types.

by Simon Almqvist Pettersson · in iTorque 2D · 12/07/2012 (6:48 am) · 0 replies

Would it be possible to get xcode to only put in one file out of 2 files named the same but in a different format. For example, only putting the .pvr file in the app bundle and not the .png file version of the same image. Or only putting the .dso version of a file in the app bundle.

As it is now both the png file and pvr file is added to the bundle even though only one of them is actually used when playing. This makes the app larger and it takes more time to get it out to the device when building.

Seems like it should be possible to somehow get xcode to only copy over a .png file if no .pvr version of that file was found.

Does anyone have an idea how this might be accomplished?