I am evaluating irrlicht as an engine for a program I am working on, and I am stuck with a silly(?) problem:
I want to read an XML configuration file, which contains the resolution the program should start with. Now, to get an XML reader, I need a IFileSystem, which I get from the device, but I can't create the device without having the resolution(?). There are a few obivous ideas:
- 1) read the resolution (and fullscreen option) from a plain text file (with standard C++ functions), and create the device, and then read the full config file? Seems to be a bit ugly having two config files.
2) add another XML parser - but I want to avoid more dependencies.
3) Create a device with a default resolution, read the config file, delete the device and create a new one? Wouldn't that create a somewhat disturbing flicker?
4) Manually create a new CFileSystem (after including CFileSystem.h and specifying an additional -I directive)?? Obviously a bad idea (but it appears to be working, at least I get a valid working directory)
Any help/recommendations highly appreciated!
Cheers,
Joerg
Edited: removed FAQ question about changing the resolution of a device