Getting rid of XML resources
Posted: Mon Oct 12, 2009 14:08
Hi guys.
I'm just wondering if it's possible to get rid of all the XML by cegui and load everything programmatically. Now you may think this makes no sense but it would be nice for me to know that I have this possibility. Having XML that are parsed at every startup of a game, when the output is always the same makes little sense. I would prefer to just populate everything with function calls, which would be much faster and it reduces the file dependencies.
Also it simplifies support enormously. Consider a normal file corruption, it's easy to know when a binary is corrupt but how do you detect that a xml is corrupt? Your user will never be able to tell and you'll end up telling them to reinstall the game in many cases. The less stuff that is outside the binary the better. Also, currently my app consists of a single exe which is pretty cool, I wouldn't want to lose this because of cegui,
So, is this possible at all?
- For XML resources, to construct them with calls to the api.
- For binary resources such as fonts and imageset textures to have them as resources of your exe and send them to cegui somehow.
If so, any pointers would be appreciated. (And please don't do like many open source projects and just tell me that I don't need to do this, I have my own reasons and I would like to know if it's possible).
Thanks in advance!
I'm just wondering if it's possible to get rid of all the XML by cegui and load everything programmatically. Now you may think this makes no sense but it would be nice for me to know that I have this possibility. Having XML that are parsed at every startup of a game, when the output is always the same makes little sense. I would prefer to just populate everything with function calls, which would be much faster and it reduces the file dependencies.
Also it simplifies support enormously. Consider a normal file corruption, it's easy to know when a binary is corrupt but how do you detect that a xml is corrupt? Your user will never be able to tell and you'll end up telling them to reinstall the game in many cases. The less stuff that is outside the binary the better. Also, currently my app consists of a single exe which is pretty cool, I wouldn't want to lose this because of cegui,
So, is this possible at all?
- For XML resources, to construct them with calls to the api.
- For binary resources such as fonts and imageset textures to have them as resources of your exe and send them to cegui somehow.
If so, any pointers would be appreciated. (And please don't do like many open source projects and just tell me that I don't need to do this, I have my own reasons and I would like to know if it's possible).
Thanks in advance!