Log in or register to post comments

Dataset loading from subfolder

March 20, 2012 - 6:23am #1

Hello, i'm looking into this line:
dataSet->load(xmlFile, QCAR::DataSet::STORAGE_APPRESOURCE)

when the xml file located in the assets folder everything works perfect,
what should i do if i want the xml file to be located in a subfolder inside Assets folder..

i.e Assets/Data/stones.xml
this doesn't work:
dataSet->load(/Data/stones.xml, QCAR::DataSet::STORAGE_APPRESOURCE)

what do i need to modify ?

Thanks

Re: Dataset loading from subfolder

March 21, 2012 - 1:44am #3

Thanks, it worked

Re: Dataset loading from subfolder

March 20, 2012 - 6:33pm #2

Try leaving off the first '/'.

dataSet->load("Data/stones.xml", QCAR::DataSet::STORAGE_APPRESOURCE)

- Kim

Log in or register to post comments