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