Problem with addFileOpenDialog

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Mequa
Posts: 13
Joined: Fri Jul 07, 2006 7:39 pm

Problem with addFileOpenDialog

Post by Mequa »

When I use addFileOpenDialog to enable the user to select a file in my Irrlicht application, it changes the current path if the user changes the path in the file selector.
This causes problems, as my program requires the ability to load files from either a local or a global path.

(i.e. loading a texture from "D:\MyApp\media\texture.jpg", "media\texture2.jpg" or even "D:\Test\t.jpg" all need to work if the application starts in D:\MyApp).

Can this be avoided? Is there a way of easily resetting the current path?
Post Reply