I am reading a plist into the CCArray but it returns a Null value. After debugging into the code I found out it is unable to read data into the buffer and I believe it is a bug. As Create2() return an invalid file handler. The Path to the assets is correct it is C:.plist on my device.
// read the file from hardware
hFile = ::CreateFile2(path.c_str(), GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING, &extendedParams);
if (INVALID_HANDLE_VALUE == hFile)
{
break;
}
In above code present in CCFileUtils_win8_metro.cpp it returns 0xffffff and breaks so no data is read to the Buffer. So the buffer is never parsed to store data in the CCArray object and thus gets NULL value.
Right click on a plist file. Goto to its properties and set content type to true. By default it will show empty slot as visual studio is unable to recongnize such file extension
I am having a big problem with the .plist, because all my contents is out of project solution it is in the root where the cocos 2d creates the folder of project “Project/Resources” and the solution is in “Project/proj.win32” , So the visual studio does not see the Resources folder and I can’t select the .plist to make the content property becomes true =( . Some Idea how can I proceed?