ToAbsolutePathname
Converts the relative path + filename to an absolute path + filename. All OpenLayer's own loading functions accept both relative and absolute pathnames. If the passed pathname is already absolute, the passed pathname is returned unmodified. This function can only be used after Setup::SetupScreen is called. Examples string relativePathname = "data/SomeTextFile.txt";
// Convert the relative pathname to absolute // // (For example, C:/mygames/mycoolgame/data/SomeTextFile.txt) // string absolutePathname = Setup::ToAbsolutePath( relativePathname ); Other functions of the class Setup
Questions about ToAbsolutePathname? Click here. |