The second parameter used to be a variable that would get the path to the file. Now this variable can also be used to specify the initial folder by setting it to the folder to use before calling SelectFileDialog. This is very similar to how Windows does it with its Open/Save dialogs.
Just place the following lines of code somewhere in the beginning of the SelectFileDialog function in browse.c after the calls to popstring. (I placed them on rows 114-118).
You also need "ofn.lpstrInitialDir = initialDir;" and "char initialDir[1024];" in suitable places.if (path[lstrlen(path) - 1] == '\\\')
{
lstrcpy(initialDir, path);
path[0] = '\0';
}