mirror of https://github.com/axmolengine/axmol.git
![]() The origin implementation of `FileUtilsApple::getValueMapFromFile()` reads the contents of file and parse it by calling one Apple API. This make it harder to decrypt user encrypted plist files. This commit use the `FileUtils::getDataFromFile()` to get read file data first then use `getValueMapFromData()` to parse it into a ValueMap. Where `FileUtils::getDataFromFile()` can be overwrite by user's decoding file utils (say `DecodingFileUtils`). I know that user's `DecodingFileUtils` can also overwrite `getValueMapFromFile`, but this pr make the author of `DecodingFileUtils` less suffering. |
||
---|---|---|
.. | ||
CCFileUtils-apple.h | ||
CCFileUtils-apple.mm | ||
CCLock-apple.cpp | ||
CCLock-apple.h | ||
CCThread-apple.mm |