| 43 | } |
| 44 | |
| 45 | void ReplayManager::OpenCapture(const QString &capturefile, const ReplayOptions &opts, |
| 46 | RENDERDOC_ProgressCallback progress) |
| 47 | { |
| 48 | if(m_Running) |
| 49 | return; |
| 50 | |
| 51 | m_FatalError = {}; |
| 52 | m_FatalError.code = ResultCode::Succeeded; |
| 53 | |
| 54 | // TODO maybe we could expose this choice to the user? |
| 55 | int proxyRenderer = -1; |
| 56 | |
| 57 | m_Thread = new LambdaThread([this, proxyRenderer, capturefile, opts, progress]() { |
| 58 | run(proxyRenderer, capturefile, opts, progress); |
| 59 | }); |
| 60 | m_Thread->setName(lit("ReplayManager")); |
| 61 | m_Thread->start(QThread::HighestPriority); |
| 62 | |
| 63 | while(m_Thread->isRunning() && !m_Running) |
| 64 | { |
| 65 | QThread::msleep(50); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | void ReplayManager::DeleteCapture(const rdcstr &capture, bool local) |
| 70 | { |
no test coverage detected