You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading a plist into the CCArray returns a Null value. After debugging into the code I found out it is unable to read data into the buffer. An asset like .png works perfectly.
// 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.
The text was updated successfully, but these errors were encountered:
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 "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?
Reading a plist into the CCArray returns a Null value. After debugging into the code I found out it is unable to read data into the buffer. An asset like .png works perfectly.
the code is simple, it works on other branch.
const char *path = CCFileUtils::sharedFileUtils()->fullPathFromRelativePath("BatchNode.plist");
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) {
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.
The text was updated successfully, but these errors were encountered: