@wstcok2003 写道:
bug(1)
android 执行 removeDirectory无效,不知道最新版改掉没有。
原文件中没有走到#if !defined(CC_PLATFORM_IOS)
这里bool FileUtils::removeDirectory(const std::string& path) { // FIXME: Why using subclassing? an interface probably will be better // to support different OS // FileUtils::removeDirectory is subclassed on iOS/tvOS // and system() is not available on tvOS #if !defined(CC_PLATFORM_IOS) if (path.size() > 0 && path[path.size() - 1] != '/') { CCLOGERROR("Fail to remove directory, path must terminate with '/': %s", path.c_str()); return false; } std::string command = "rm -r "; // Path may include space. command += "\"" + path + "\""; if (system(command.c_str()) >= 0) return true; else #endif return false; }
bug(2)
lua 热更新官方Demo中的AssetsManager.cpp中update无效
跟中源文件发现如下void AssetsManager::update() { // all operation in checkUpdate, nothing need to do // keep this function for compatibility }
帖子: 7
参与者: 1