1

I am developing one game using Cocos2d-x 3.9. I tried to load the plist file in my game with following code.

But the size of data is 0. It returns no data.

How can I load plist? CCDictionary was deprecated in Cocos2d-x v3.9

ValueMap data;
std::string path = FileUtils::getInstance()->fullPathForFilename("my.plist");
data = FileUtils::getInstance()->getValueMapFromFile(path);
Arulkumar
  • 12,966
  • 14
  • 47
  • 68

0 Answers0