using a XML file to handle configuration?
Posted: Wed Apr 27, 2005 3:15 pm
Hi,
i want to have the device init params saved in a XML file.
so i don't need to recompile when i want to change the resolution or windowed vs full screen mode etc.
Since the integrated XML parser does need a device already created:
i am a little helpless now.
So how am i able to acces the xml parser without having created a device?
Greetings
Markus
i want to have the device init params saved in a XML file.
Code: Select all
Device = createDevice(driverType, dimension2d<s32>(800, 600),
32, true, true, false, &receiver);
Since the integrated XML parser does need a device already created:
Code: Select all
io::IXMLReader* xml = Device->getFileSystem()->createXMLReader(
configfile.c_str() );
So how am i able to acces the xml parser without having created a device?
Greetings
Markus