GetGameFolderName Function

Returns the name of the game's directory.

int GetGameFolderName(char[] buffer, int maxlength)

Parameters

char[] buffer

Buffer to store the directory name.

int maxlength

Maximum size of the buffer.

Return Value

Number of bytes written to the buffer (UTF-8 safe).