How to access filesystem without device?

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
irr::Dave
Posts: 8
Joined: Wed Jul 16, 2014 4:17 pm

How to access filesystem without device?

Post by irr::Dave »

Hello,
is it possible to access the filesystem via Irrlicht without setting up a device?
This is what I have atm:

Code: Select all

irr::video::E_DRIVER_TYPE driverType = irr::driverChoiceConsole();
if (driverType == irr::video::EDT_COUNT) return 1;
irr::IrrlichtDevice *device = irr::createDevice(driverType, irr::core::dimension2d<irr::u32>(640,480), 16, false);
if (!device) return 1;
device->getFileSystem();
I don't need the driver/device/window stuff at this point in my program.
So I imagined sth like a single call to 'irr::io::functionname()' which returns
a pointer to an irr::io::IFileSystem object.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Re: How to access filesystem without device?

Post by greenya »

There is video::EDT_NULL.
Create it and you will not have any window for drawing.
irr::Dave
Posts: 8
Joined: Wed Jul 16, 2014 4:17 pm

Re: How to access filesystem without device?

Post by irr::Dave »

Okay, I will create a NULL device then,
thank you
Post Reply