Problem with open file dir

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
i245
Posts: 8
Joined: Sun May 20, 2007 5:16 pm

Problem with open file dir

Post by i245 »

Hi all.
When i use IGUIOpenFileDialog class the current dir was change. How to i can change current dir to default?
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

You create a variable type

Code: Select all

IFileSystem* return m_FS;
You define it to the current path

Code: Select all

stringc m_WorkingDirectory = ".";
then you use that function to set your path:

Code: Select all

m_FS->changeWorkingDirectoryTo(m_WorkingDirectory.c_str());
Post Reply