C4 Engine
C4 Engine API Documentation


Defined in:  C4Resources.h
Returns the path to a resource file.

void GetResourcePath(const ResourceDescriptor *descriptor, const char *name, ResourcePath *path) const;

descriptor A pointer to the descriptor for the type of resource to which a path is returned.
name The name of the resource, without any extension.
path A pointer to the ResourcePath string object where the path is returned.
The GetResourcePath function creates the full path to the resource identified by the descriptor and name parameters and returns it in the ResourcePath string object specified by the path parameter.