Using Cocos2d-x 3.0 Beta:
I have a ValueMap that I want to save using this method:
std::cout << "map value: " << _map.at(KEY_FILE_VERSION).asFloat() << "\n"; successFlag = _fileUtils->writeToFile(_map, _writablePath);
This cout prints: “map value: 5” as it should, so I know the map has the value.
In addition the file is saved to my docs directory. However, the file looks like this:
`<?xml version="1.0" encoding="UTF-8"?>`
The tests in the beta still use Dictionary for the FileUtils plist test, so is this feature not implemented yet?