Documentation

IO::FromUserGameFolder

Function

string IO::FromUserGameFolder(const string&in filename)

Gets the absolute path for a file in the game's user folder. This what the game considers the user folder, for example C:\Users\Username\Documents\Trackmania. Note that it is possible for this function to return only the given filename without any absolute path, in case the game doesn't have the necessary info, but you should consider this to happen very rarely (if ever).

string filename

Returns string