Page 1 of 1

CGUIFileOpenDialog is changing the WorkingDirectory

Posted: Sun Apr 02, 2006 1:49 am
by Pr3t3nd3r
example:
One editor application. You use CGUIFileOpenDialog to open your mesh from a place on the partition. After that you try to load one default mesh (click on button) from the application directories ..ex: "default_meshes\...".
That will not be possble any more because CGUIFileOpenDialog changes the WorkingDirectory making all the application unusable.
Try to save some default configuration using xml .. same problem ...
(like:
xmlwriter = device->getFileSystem()->createXMLWriter("sets/sound.xml");
)

Posted: Sun Apr 02, 2006 9:49 pm
by Pr3t3nd3r_guest
I think is totally unacceptable for any object to change the working directory of the application except for an special function like changeWorkingDirectory .. but even that is a little dangerous ...

Any how can CGUIFileOpenDialog changed to stop changing the WorkingDirectory

Posted: Mon Apr 03, 2006 11:47 am
by Spintz
search forums, it's already been posted about and solutions have also been posted.

Posted: Mon Apr 03, 2006 5:26 pm
by Guest
give me link!

i searched: changeWorkingDirectoryTo and CGUIFileOpenDialog and i did not found any think.

When the dialog is on and i navigate in the search for the file ... the application try to get some file knowing that the working directory is the one where the exe is ... it will not found it...

Posted: Tue Apr 04, 2006 2:14 pm
by Spintz