Finding the path of a file bundled with Orx's config files and image can be non-trivial without Orx's utilities in a platform independent manner.
const orxSTRING zLocation = orxResource_Locate("Magic", "Awesome.mag"); // zLocation looks like "file:/path/to/Awesome.mag" if found if(zLocation) { const orxSTRING zPath = orxString_SearchChar(zLocation, orxRESOURCE_KC_LOCATION_SEPARATOR) + 1; // zPath looks like /path/to/Awesome.mag }
[Resource] Magic = @.Config ; Define a custom resource group "Magic"