So, I wanna store information about persons preference if he wants for the game to be fullscreen or windowed. I've created this bool function that checks if there is "videoSettings.xml" file and returns information about users preference. If the file doesn't exists it will be create with Fullscreen set to 0 (which basically means that the game will be windowed and the user could change it later in the game's settings).
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Sat Dec 20, 2014 10:51 pm Post subject:
You should be calling ->Value() on the attribute to obtain the value data. The value still is a const char* so you will need to convert it to something else if you want to test it as a bool / int value. You can use atoi or similar functions to do that. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum