mirror of https://github.com/axmolengine/axmol.git
Minor code clean-up
This commit is contained in:
parent
20a0747c8d
commit
17e1cc1d71
|
@ -820,8 +820,7 @@ void DownloaderCURL::_onDownloadFinished(TaskWrapper&& wrapper, int checkState)
|
||||||
|
|
||||||
if (checkState & kCheckSumStateSucceed) // No need download
|
if (checkState & kCheckSumStateSucceed) // No need download
|
||||||
{
|
{
|
||||||
FileStream* fsOrigin =
|
auto* fsOrigin = pFileUtils->openFileStream(coTask._fileName, FileStream::Mode::READ);
|
||||||
FileUtils::getInstance()->openFileStream(coTask._fileName, FileStream::Mode::READ);
|
|
||||||
if (fsOrigin) {
|
if (fsOrigin) {
|
||||||
fsOrigin->seek(0, SEEK_END);
|
fsOrigin->seek(0, SEEK_END);
|
||||||
task.progressInfo.totalBytesExpected = fsOrigin->tell();
|
task.progressInfo.totalBytesExpected = fsOrigin->tell();
|
||||||
|
|
Loading…
Reference in New Issue