Change FindMap to take a const char* for searching instead of char*.

This commit is contained in:
Kyle Sanderson
2015-09-10 11:47:46 -07:00
parent d9839bab68
commit f59df243ea
4 changed files with 35 additions and 15 deletions
+4 -3
View File
@@ -159,12 +159,13 @@ native bool:IsMapValid(const String:map[]);
* Returns whether a full or partial map name is found or can be resolved
*
* @param map Map name (usually same as map path relative to maps/ dir,
* excluding .bsp extension). If result is FindMap_FuzzyMatch
* or FindMap_NonCanonical, this will be updated to the full path.
* excluding .bsp extension).
* @param foundmap Resolved map name. If the return is FindMap_FuzzyMatch
* or FindMap_NonCanonical the buffer will be the full path.
* @param maxlen Maximum length to write to map var.
* @return Result of the find operation. Not all result types are supported on all games.
*/
native FindMapResult FindMap(char[] map, int maxlen);
native FindMapResult FindMap(const char[] map, char[] foundmap, int maxlen);
/**
* Returns whether the server is dedicated.