SDL: yet another fix for downloads on 64-bit arches

This commit is contained in:
Sergii Pylypenko
2015-10-23 16:28:10 +03:00
parent 54de45e77c
commit ff19381225

View File

@@ -209,8 +209,13 @@ class DataDownloader extends Thread
{
if( ! DownloadDataFile(downloadFiles[i].replace("<ARCH>", android.os.Build.CPU_ABI), DOWNLOAD_FLAG_FILENAME + String.valueOf(i) + ".flag", count+1, total, i) )
{
DownloadFailed = true;
return;
if ( ! downloadFiles[i].contains("<ARCH>") || (
downloadFiles[i].contains("<ARCH>") &&
! DownloadDataFile(downloadFiles[i].replace("<ARCH>", android.os.Build.CPU_ABI2), DOWNLOAD_FLAG_FILENAME + String.valueOf(i) + ".flag", count+1, total, i) ) )
{
DownloadFailed = true;
return;
}
}
count += 1;
}