| 59 | } |
| 60 | |
| 61 | void beginLocalRun(const std::string& mode, size_t totalFiles) |
| 62 | { |
| 63 | std::lock_guard<std::mutex> lock(sMutex); |
| 64 | sState.mode = mode; |
| 65 | sState.copyCount = 0; |
| 66 | sState.copyTotal = totalFiles; |
| 67 | sState.currentFile.clear(); |
| 68 | sState.currentFileSize = 0; |
| 69 | sState.currentFileOffset = 0; |
| 70 | } |
| 71 | |
| 72 | void startFile(const std::u16string& name, u32 size) |
| 73 | { |