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.
the code is simple works on other branch.
const char path = CCFileUtils::sharedFileUtils->fullPathFromRelativePath;
CCArray parray = CCArray::createWithContentsOfFile(path);
// read the file from hardware
hFile = ::CreateFile2(path.c_str(), GENERIC_READ, FILE_SHARE_READ, OPEN_EXISTING, &extendedParams);
if (INVALID_HANDLE_VALUE == hFile)
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.