//-------------------------------------------------------------- //-------------------------------------------------------------- void GooglePlayExpansionSystem::Download(const DownloadStatusDelegate& in_delegate) { m_downloadStatusDelegate = in_delegate; if(!IsDownloadRequired()) { if(m_downloadStatusDelegate) { m_downloadStatusDelegate(DownloadStatus::k_complete); } return; } // If Downloaded obb exists (i.e. is downloaded or copied locally) // but not installed, install them else if(DoExpansionDownloadFilesExist()) { OnDownloadStatusChanged(DownloadStatus::k_complete); return; } CSCore::Application::Get()->GetFileSystem()->DeleteFile(CSCore::StorageLocation::k_cache, "GoogleExpansionDownloader.cache"); m_javaInterface->Download(); }
bool DownloadDialog::IsRequired() const { return IsCopyRequired() || IsDownloadRequired(); }