cocos2d-x 能访问本地文件吗

如题

:lol有人能知道吗

我这个本地文件是相对于游戏包里的文件而言的
:lol

可以的。

我猜只要在sandbox里面就可以吧?

我的意思是说cocos2d-x并没有提供这种接口

std::string documentPath = CCFileUtils::getWriteablePath();
是这个么??

— Begin quote from ____

bingwan 发表于 2012-4-29 12:29 url

std::string documentPath = CCFileUtils::getWriteablePath();
是这个么??

— End quote

我主要想让他加载沙盒里的图片,但看起来只能自己去实现啦

可以的。

我猜只要在sandbox里面就可以吧?

std::string documentPath = CCFileUtils::getWriteablePath();
是这个么??