FindMap Function

Returns whether a full or partial map name is found or can be resolved

FindMapResult FindMap(const char[] map, char[] foundmap, int maxlen)


const char[] map

Map name (usually same as map path relative to maps/ dir, excluding .bsp extension).

char[] foundmap

Resolved map name. If the return is FindMap_FuzzyMatch or FindMap_NonCanonical the buffer will be the full path.

int maxlen

Maximum length to write to map var.

Return Value

Result of the find operation. Not all result types are supported on all games.