MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / sendFiles

Method sendFiles

gui/qt/emuthread.cpp:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void 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
293bool EmuThread::progressHandler(void *context, int value, int total) {
294 EmuThread* emuThread = reinterpret_cast<EmuThread *>(context);

Callers 3

optSendMethod · 0.45
varSelectMethod · 0.45
autotesterLaunchMethod · 0.45

Calls 2

emu_send_variablesFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected