C4 Engine
C4 Engine API Documentation

GenericResourceCatalog::GetResourcePath

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

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

Parameters
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.
Description
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.