CGUIFileOpenDialog is changing the WorkingDirectory

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Pr3t3nd3r
Posts: 186
Joined: Tue Feb 08, 2005 6:02 pm
Location: Romania
Contact:

CGUIFileOpenDialog is changing the WorkingDirectory

Post 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");
)
Galactic Dream Best RTS game
http://www.rageofwar.net
Engage in epic galactic warfare, guide your people through the galaxy! in the real time strategy game made with Irrlicht
http://www.evolutionvault.com
Pr3t3nd3r_guest

Post 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
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

search forums, it's already been posted about and solutions have also been posted.
Image
Guest

Post 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...
Post Reply