Game Development Community

defaultPath in OpenFileDialog

by Rex Hiebert · in Torque 3D Professional · 10/02/2009 (12:33 pm) · 1 replies

I've tried setting a defaultpath for the open file dialog but it refuses to open to that directory. Most of the time it opens to the "levels" dir. I've added echo comments to make sure the path string is being set correctly. I even added code into the engine to make sure the values were passed to the C++ code correctly. Again, they are. The only thing I can see is that it may have something to do with the unicode conversion or the api call itself (in "FileDialog::Execute()" in "fileDialog.cpp") Has anyone else noticed this? Is there a fix for it?

When I searched the forums I found people asking about this even on TGA. No answers were ever posted.

RMH

#1
10/02/2009 (1:24 pm)
I noticed that the unicode version of the api call is being used. Could the unicode conversion of the path string cause a problem? The other values that are passed (Title, Filters, ect) seem to be ok. It's just the initialpath that isn't working.