我是新來的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
}