| 277 | } |
| 278 | |
| 279 | void EmuThread::sendFiles() { |
| 280 | QList<QByteArray> utf8Vars; |
| 281 | QVector<const char *> args; |
| 282 | utf8Vars.reserve(m_vars.size()); |
| 283 | args.reserve(m_vars.size()); |
| 284 | for (const QString &string : m_vars) { |
| 285 | utf8Vars.push_back(string.toUtf8()); |
| 286 | args.push_back(utf8Vars.back()); |
| 287 | } |
| 288 | m_backupThrottleForTransfers = m_throttle; |
| 289 | setThrottle(false); |
| 290 | emu_send_variables(args.data(), args.size(), m_sendLoc, &EmuThread::progressHandler, this); |
| 291 | } |
| 292 | |
| 293 | bool EmuThread::progressHandler(void *context, int value, int total) { |
| 294 | EmuThread* emuThread = reinterpret_cast<EmuThread *>(context); |
no test coverage detected