Code: Select all
while (device->run() && driver)
{
if (device->isWindowActive())
{
driver->beginScene(true, true, video::SColor(0, 0, 0, 0));
execScriptFile("Data\\Scripts\\script.lua");
driver->endScene();
}
}
Of course I can remember at the begining of program execution current working dir and than use it.
Is it bug, or it must be so?