| 92 | } |
| 93 | |
| 94 | void beginNetwork(const std::string& mode, u64 totalBytes) |
| 95 | { |
| 96 | sCancel.store(false); |
| 97 | std::lock_guard<std::mutex> lock(sMutex); |
| 98 | sState.kind = TransferKind::Network; |
| 99 | sState.active = true; |
| 100 | sState.mode = mode; |
| 101 | sState.bytesDone = 0; |
| 102 | sState.bytesTotal = totalBytes; |
| 103 | } |
| 104 | |
| 105 | void setMode(const std::string& mode) |
| 106 | { |
no test coverage detected