| 207 | } |
| 208 | |
| 209 | void NetConnection::sendNextFileDownloadRequest() |
| 210 | { |
| 211 | // see if we've already downloaded this file... |
| 212 | while(mMissingFileList.size() && (Torque::FS::IsFile(mMissingFileList[0]) || Con::getBoolVariable("$NetConnection::neverDownloadFiles"))) |
| 213 | { |
| 214 | dFree(mMissingFileList[0]); |
| 215 | mMissingFileList.pop_front(); |
| 216 | } |
| 217 | |
| 218 | if(mMissingFileList.size()) |
| 219 | { |
| 220 | postNetEvent(new FileDownloadRequestEvent(&mMissingFileList)); |
| 221 | } |
| 222 | else |
| 223 | { |
| 224 | fileDownloadSegmentComplete(); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | |
| 229 | void NetConnection::chunkReceived(U8 *chunkData, U32 chunkLen) |
nothing calls this directly
no test coverage detected