我是新来的cocos2d-x,并在编译我的项目时出现此错误。调用不可用的函数'系统':不适用于iOS
电话无法使用的功能“系统”:不适用于iOS
我看到这个调用将不再适用,但是,我可以用它来取代它呢? 任何有识之士将不胜感激!
bool FileUtils::removeDirectory(const std::string& path)
{
#if !defined(CC_TARGET_OS_TVOS)
std::string command = "rm -r ";
// Path may include space.
command += "\"" + path + "\"";
if (system(command.c_str()) >= 0) /*System Call Error/Not Availible*/
return true;
else
return false;
#else
return false;
#endif
}