How does CCFileUTils::fullPathForFilename work

OverView

  • The purpose of this document is show you how does function CCFileUtils::fullPathForFilename() work on different platforms.
  • The document is based on engine version: cocos2d-x 2.1
  • CCFileUtils::fullPathForFilename() is not return the absolute path on some platforms.
  • If you want to get a writable path, attempt to use interface CCFileUtils::getWritablePath().

iOS


201311230756.jpg

android

The function return the parameter directly. It's the absolute path in the .apk file.

win32


201311230757.jpg

原文地址:https://www.cnblogs.com/yssgyw/p/3438594.html